Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 562 Bytes
use Psr\Container\ContainerInterface;
use Selective\Config\Configuration;
use Symfony\Component\Console\Application;
if (isset($_SERVER['REQUEST_METHOD'])) {
echo "Only CLI allowed. Script stopped.\n";
/** @var ContainerInterface $container */
$container = (require __DIR__ . '/../config/bootstrap.php')->getContainer();
$commands = $container->get(Configuration::class)->getArray('commands');
$application = new Application();
foreach ($commands as $class) {
You can’t perform that action at this time.