2015-01-22 07:30:07 +00:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
2015-12-22 12:00:37 +00:00
|
|
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
|
|
|
use Symfony\Component\Console\Input\ArgvInput;
|
2023-08-07 21:29:48 +00:00
|
|
|
use Symfony\Component\ErrorHandler\Debug;
|
2015-12-22 12:00:37 +00:00
|
|
|
|
2015-01-22 07:30:07 +00:00
|
|
|
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
|
2018-10-24 19:02:35 +00:00
|
|
|
// read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
|
|
|
|
// for more information
|
2015-01-22 07:30:07 +00:00
|
|
|
//umask(0000);
|
|
|
|
|
|
|
|
set_time_limit(0);
|
|
|
|
|
2018-10-24 19:02:35 +00:00
|
|
|
require __DIR__.'/../vendor/autoload.php';
|
2015-01-22 07:30:07 +00:00
|
|
|
|
|
|
|
$input = new ArgvInput();
|
2018-10-24 19:02:35 +00:00
|
|
|
$env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev', true);
|
|
|
|
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption('--no-debug', true) && $env !== 'prod';
|
2015-01-22 07:30:07 +00:00
|
|
|
|
|
|
|
if ($debug) {
|
|
|
|
Debug::enable();
|
|
|
|
}
|
|
|
|
|
|
|
|
$kernel = new AppKernel($env, $debug);
|
|
|
|
$application = new Application($kernel);
|
|
|
|
$application->run($input);
|