yii 696 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env php
  2. <?php
  3. /**
  4. * Yii console bootstrap file.
  5. *
  6. * @link http://www.yiiframework.com/
  7. * @copyright Copyright (c) 2008 Yii Software LLC
  8. * @license http://www.yiiframework.com/license/
  9. */
  10. defined('YII_DEBUG') or define('YII_DEBUG', true);
  11. // fcgi doesn't have STDIN and STDOUT defined by default
  12. defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
  13. defined('STDIN') or define('STDOUT', fopen('php://stdout', 'w'));
  14. require(__DIR__ . '/vendor/autoload.php');
  15. require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');
  16. $config = require(__DIR__ . '/config/console.php');
  17. $application = new yii\console\Application($config);
  18. $exitCode = $application->run();
  19. exit($exitCode);