Setup feeds, request, and filter them
This commit is contained in:
1 parent
657975324a
commit
70e78bcf42
10 files changed
+330
-4
No files matched your search
+8
-1
@@ -4,6 +4,8 @@ require_once __DIR__ . '/../vendor/autoload.php';
|
||||
use Doctrine\ORM\EntityManager;
|
||||
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
||||
use Doctrine\ORM\Tools\Console\EntityManagerProvider\SingleManagerProvider;
|
||||
use Lewisdale\App\Models\Repositories\FeedRepository;
|
||||
use Lewisdale\App\Tools\Console\TestFeed;
|
||||
|
||||
$dotenv = Dotenv\Dotenv::createImmutable([__DIR__, __DIR__ . "/.."]);
|
||||
$dotenv->load();
|
||||
@@ -12,6 +14,11 @@ $dotenv->load();
|
||||
require_once __DIR__ . '/../src/dependencies.php';
|
||||
global $container;
|
||||
|
||||
$commands = [
|
||||
$container->get(TestFeed::class),
|
||||
];
|
||||
|
||||
ConsoleRunner::run(
|
||||
new SingleManagerProvider($container->get(EntityManager::class))
|
||||
new SingleManagerProvider($container->get(EntityManager::class)),
|
||||
$commands
|
||||
);
|
||||
Reference in new issue
Block a user