Sources du site https://defis48.deblan.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
877 B

  1. #!/usr/bin/env php
  2. <?php
  3. use Symfony\Bundle\FrameworkBundle\Console\Application;
  4. use Symfony\Component\Console\Input\ArgvInput;
  5. use Symfony\Component\Debug\Debug;
  6. // if you don't want to setup permissions the proper way, just uncomment the following PHP line
  7. // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
  8. //umask(0000);
  9. set_time_limit(0);
  10. /**
  11. * @var Composer\Autoload\ClassLoader $loader
  12. */
  13. $loader = require __DIR__.'/../app/autoload.php';
  14. $input = new ArgvInput();
  15. $env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev');
  16. $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(['--no-debug', '']) && $env !== 'prod';
  17. if ($debug) {
  18. Debug::enable();
  19. }
  20. $kernel = new AppKernel($env, $debug);
  21. $application = new Application($kernel);
  22. $application->run($input);