2024-08-30 12:28:30 +00:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
|
|
|
|
use Doctrine\ORM\EntityManager;
|
|
|
|
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
|
|
|
use Doctrine\ORM\Tools\Console\EntityManagerProvider\SingleManagerProvider;
|
2024-09-20 12:22:05 +00:00
|
|
|
use Lewisdale\App\Models\Repositories\FeedRepository;
|
|
|
|
use Lewisdale\App\Tools\Console\TestFeed;
|
2024-08-30 12:28:30 +00:00
|
|
|
|
|
|
|
$dotenv = Dotenv\Dotenv::createImmutable([__DIR__, __DIR__ . "/.."]);
|
2024-11-15 11:24:21 +00:00
|
|
|
$dotenv->safeLoad();
|
2024-08-30 12:28:30 +00:00
|
|
|
|
2024-09-17 20:52:08 +00:00
|
|
|
|
2024-08-30 12:28:30 +00:00
|
|
|
require_once __DIR__ . '/../src/dependencies.php';
|
|
|
|
global $container;
|
|
|
|
|
2024-09-20 12:22:05 +00:00
|
|
|
$commands = [
|
|
|
|
$container->get(TestFeed::class),
|
|
|
|
];
|
|
|
|
|
2024-08-30 12:28:30 +00:00
|
|
|
ConsoleRunner::run(
|
2024-09-20 12:22:05 +00:00
|
|
|
new SingleManagerProvider($container->get(EntityManager::class)),
|
|
|
|
$commands
|
2024-08-30 12:28:30 +00:00
|
|
|
);
|