EventListener/RoutingListener.php
public function addPrefix(RouteEvent $event)
    {
        $route = $event->getRoute();

        $route->setPath($this->prefix . $route->getPath());
    }
public function addPrefix(RouteEvent $event)
    {
        $route = $event->getRoute();

        $route->setPath($this->prefix . $route->getPath());
    }
public function addPrefix ( RouteEvent $ event ) { $ route = $ event -> getRoute ( ) ; $ route -> setPath ( $ this -> prefix . $ route -> getPath ( ) ) ; }
Add a prefix on each route

@param RouteEvent $event

@return void
Add a prefix on each route