BaseController.php 385 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace console\controllers;
  3. use yii\console\Controller;
  4. /**
  5. * 继承控制器
  6. * Class BaseController
  7. * @package console\controllers
  8. */
  9. class BaseController extends Controller
  10. {
  11. /*public function beforeAction($action)
  12. {
  13. return true;
  14. //todo start log
  15. }
  16. public function afterAction($action, $result)
  17. {
  18. return true;
  19. //todo end log
  20. }*/
  21. }