| 1 | <?php |
||
| 10 | trait WithAuthTrait{ |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var AuthController |
||
| 14 | */ |
||
| 15 | protected $authController; |
||
| 16 | |||
| 17 | public function initialize(){ |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritDoc} |
||
| 26 | * @see \Ubiquity\controllers\Controller::isValid() |
||
| 27 | */ |
||
| 28 | public function isValid() { |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritDoc} |
||
| 34 | * @see \Ubiquity\controllers\Controller::onInvalidControl() |
||
| 35 | */ |
||
| 36 | public function onInvalidControl() { |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return \Ubiquity\controllers\auth\AuthController |
||
| 46 | */ |
||
| 47 | protected function _getAuthController():AuthController{ |
||
| 53 | |||
| 54 | protected abstract function getAuthController():AuthController; |
||
| 55 | |||
| 56 | } |
||
| 57 |