路由配置文件独立 不需要extra_config_file配置 改进App类

This commit is contained in:
thinkphp
2016-08-03 14:34:08 +08:00
parent 5a9b606f4b
commit e71c3630cd
3 changed files with 6 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\console\command\optimize;
@@ -27,9 +27,7 @@ class Route extends Command
protected function execute(Input $input, Output $output)
{
file_put_contents(RUNTIME_PATH . 'route.php', $this->buildRouteCache());
$output->writeln('<info>Succeed!</info>');
}