yii 609 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 defined by default
  12. defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
  13. require(__DIR__ . '/Yii.php');
  14. $application = new yii\console\Application([
  15. 'id' => 'yii-console',
  16. 'basePath' => __DIR__ . '/console',
  17. 'controllerPath' => '@yii/console/controllers',
  18. ]);
  19. $exitCode = $application->run();
  20. exit($exitCode);