Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

34 linhas
817 B

  1. #!/usr/bin/env php
  2. <?php
  3. declare(strict_types=1);
  4. /*
  5. * This file is part of Contao.
  6. *
  7. * (c) Leo Feyer
  8. *
  9. * @license LGPL-3.0-or-later
  10. */
  11. use Contao\ManagerBundle\Console\ContaoApplication;
  12. use Contao\ManagerBundle\HttpKernel\ContaoKernel;
  13. use Symfony\Component\Console\Input\ArgvInput;
  14. set_time_limit(0);
  15. @ini_set('zlib.output_compression', '0');
  16. @ini_set('display_errors', '0');
  17. // System maintenance mode comes first as it has to work even if the vendor directory does not exist
  18. if ('contao:cron' === ($_SERVER['argv'][1] ?? null) && file_exists(__DIR__.'/../var/maintenance.html')) {
  19. exit;
  20. }
  21. require __DIR__.'/../vendor/autoload.php';
  22. $input = new ArgvInput();
  23. $kernel = ContaoKernel::fromInput(\dirname(__DIR__), $input);
  24. $application = new ContaoApplication($kernel);
  25. $application->run($input);