| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace PhpLife\App\Script;
- use PhpLife\Frame\Helper;
- use PhpLife\Frame\Logger;
- abstract class Controller extends \PhpLife\Frame\Controller
- {
- /**
- * 获取命令行参数
- * @return array
- */
- protected function getArguments()
- {
- return Helper::getArguments();
- }
- /**
- * 记录下运行日志
- */
- public function after()
- {
- parent::after();
- Logger::debug('', 'runtime');
- }
- protected function addLogs($msg,$file="admin")
- {
- Logger::setLog($msg, $file);
- }
- }
|