PHP Class Sulu\Bundle\RouteBundle\Routing\RouteProvider

Inheritance: implements Symfony\Cmf\Component\Routing\RouteProviderInterface
Mostrar archivo Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Bundle\RouteBundle\Entity\RouteRepositoryInterface $routeRepository, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer, Sulu\Bundle\RouteBundle\Routing\Defaults\RouteDefaultsProviderInterface $routeDefaultsProvider, Symfony\Component\HttpFoundation\RequestStack $requestStack, ProxyManager\Factory\LazyLoadingValueHolderFactory $proxyFactory = null )
getRouteByName ( $name )
getRouteCollectionForRequest ( Request $request )
getRoutesByNames ( $names )

Protected Methods

Method Description
createRoute ( Sulu\Bundle\RouteBundle\Model\RouteInterface $route, Request $request ) : Symfony\Component\Routing\Route Will create a symfony route.

Private Methods

Method Description
findRouteByPath ( string $path, string $locale ) : Sulu\Bundle\RouteBundle\Entity\Route Find route and cache it.

Method Details

__construct() public method

public __construct ( Sulu\Bundle\RouteBundle\Entity\RouteRepositoryInterface $routeRepository, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer, Sulu\Bundle\RouteBundle\Routing\Defaults\RouteDefaultsProviderInterface $routeDefaultsProvider, Symfony\Component\HttpFoundation\RequestStack $requestStack, ProxyManager\Factory\LazyLoadingValueHolderFactory $proxyFactory = null )
$routeRepository Sulu\Bundle\RouteBundle\Entity\RouteRepositoryInterface
$requestAnalyzer Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface
$routeDefaultsProvider Sulu\Bundle\RouteBundle\Routing\Defaults\RouteDefaultsProviderInterface
$requestStack Symfony\Component\HttpFoundation\RequestStack
$proxyFactory ProxyManager\Factory\LazyLoadingValueHolderFactory

createRoute() protected method

Will create a symfony route.
protected createRoute ( Sulu\Bundle\RouteBundle\Model\RouteInterface $route, Request $request ) : Symfony\Component\Routing\Route
$route Sulu\Bundle\RouteBundle\Model\RouteInterface
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\Routing\Route

getRouteByName() public method

public getRouteByName ( $name )

getRouteCollectionForRequest() public method

public getRouteCollectionForRequest ( Request $request )
$request Symfony\Component\HttpFoundation\Request

getRoutesByNames() public method

public getRoutesByNames ( $names )