BaseRequest.php 396 B

1234567891011121314151617
  1. <?php
  2. namespace app\common\base\request;
  3. use think\Request;
  4. abstract class BaseRequest extends Request {
  5. public function __construct(array $options = []){
  6. $this->beforeConstruct($options);
  7. parent::__construct($options);
  8. $this->afterConstruct($options);
  9. }
  10. protected function beforeConstruct($options) {}
  11. protected function afterConstruct($options) {}
  12. }