| 1 | <?php |
||
| 17 | class DisabledToolSubscriber implements EventSubscriberInterface |
||
| 18 | { |
||
| 19 | |||
| 20 | /** @var Container */ |
||
| 21 | protected $container; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Save the container for later use. |
||
| 25 | * @param Container $container |
||
| 26 | */ |
||
| 27 | public function __construct(Container $container) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Register our interest in the kernel.controller event. |
||
| 34 | * @return string[] |
||
| 35 | */ |
||
| 36 | public static function getSubscribedEvents() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Check to see if the current tool is enabled. |
||
| 45 | * @param FilterControllerEvent $event The event. |
||
| 46 | * @throws NotFoundHttpException If the tool is not enabled. |
||
| 47 | */ |
||
| 48 | public function onKernelController(FilterControllerEvent $event) |
||
| 58 | } |
||
| 59 |