mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-09 01:26:53 +01:00
17 lines
462 B
PHP
17 lines
462 B
PHP
#!/usr/bin/env php
|
|
<?php
|
|
|
|
// change the following paths if necessary
|
|
$yiiFramework='{YiiPath}';
|
|
$configFile=dirname(__FILE__).'/config/console.php';
|
|
|
|
defined('YII_DEBUG') or define('YII_DEBUG',true);
|
|
|
|
// disable E_NOTICE so that "yiic shell" is more friendly
|
|
error_reporting(E_ALL ^ E_NOTICE);
|
|
|
|
require_once($yiiFramework);
|
|
$app=Yii::createConsoleApplication($configFile);
|
|
$app->commandRunner->addCommands(YII_PATH.'/cli/commands');
|
|
$app->run();
|