Download bin/console from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 620 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/bin/console
- Command line
-
hf download hf://pnacorp/AIKEEDO/bin/console
-
curl -L -o console https://huggingface.co/pnacorp/AIKEEDO/resolve/main/bin/console
620 Bytes
| #!/usr/bin/env php | |
| declare(strict_types=1); | |
| use Doctrine\ORM\EntityManagerInterface; | |
| use Psr\Container\ContainerInterface; | |
| use Psr\Container\NotFoundExceptionInterface; | |
| use Symfony\Component\Console\Application; | |
| /** @var ContainerInterface $container */ | |
| $container = include __DIR__ . '/../bootstrap/app.php'; | |
| $console = $container->get(Application::class); | |
| $console->setAutoExit(false); | |
| $console->run(); | |
| try { | |
| // Persist data | |
| /** @var EntityManagerInterface $em */ | |
| $em = $container->get(EntityManagerInterface::class); | |
| $em->flush(); | |
| } catch (NotFoundExceptionInterface) { | |
| // Do nothing | |
| } | |