PHP   80

console

Guest on 20th June 2022 05:01:55 PM

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

Raw Paste


Login or Register to edit or fork this paste. It's free.