| 1 | <?php |
||
| 8 | trait MiddlewareCommon |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Disable flag |
||
| 12 | * |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | protected $disableFlag = 0; |
||
| 16 | |||
| 17 | public function __construct($disableFlag = 0) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Check if this middlware is enabled |
||
| 24 | * |
||
| 25 | * @param int|true $excludeMiddleware |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | protected function enabled($excludeMiddleware) |
||
| 38 | |||
| 39 | public function serialize() |
||
| 43 | |||
| 44 | public function unserialize($serialized) |
||
| 48 | } |
||
| 49 |