| 1 | <?php |
||
| 9 | class RoutingListener implements EventSubscriberInterface |
||
| 10 | { |
||
| 11 | protected $prefix; |
||
| 12 | |||
| 13 | 4 | public function __construct($prefix) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | 2 | public static function getSubscribedEvents() |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Add a prefix on each route |
||
| 33 | * |
||
| 34 | * @param RouteEvent $event |
||
| 35 | * |
||
| 36 | * @return void |
||
| 37 | */ |
||
| 38 | 2 | public function addPrefix(RouteEvent $event) |
|
| 44 | } |
||
| 45 |