| 1 | <?php |
||
| 10 | class AdminSubscriber implements EventSubscriberInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var AdminFactory |
||
| 14 | */ |
||
| 15 | protected $adminFactory; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return array |
||
| 19 | */ |
||
| 20 | public static function getSubscribedEvents() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * AdminSubscriber constructor. |
||
| 29 | * |
||
| 30 | * @param AdminFactory $adminFactory |
||
| 31 | */ |
||
| 32 | public function __construct(AdminFactory $adminFactory) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Init admin factory on kernel request. |
||
| 39 | */ |
||
| 40 | public function kernelRequest() |
||
| 45 | } |
||
| 46 |