-
-
Save bazo/0c36a512516b7991890a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
use Symfony\Component\Console\Application; | |
// Let bootstrap create Dependency Injection container. | |
$configurator = require __DIR__ . '/app/bootstrap.php'; | |
$configurator->addConfig(__DIR__ . '/app/config/console.neon'); | |
$container = $configurator->createContainer(); | |
// Run console | |
if (PHP_SAPI === 'cli') { | |
$container->getByType(Application::class)->run(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment