PHP Class WellCommerce\Bundle\RoutingBundle\Provider\RouteProvider

Author: Adam Piotrowski ([email protected])
Inheritance: implements Symfony\Cmf\Component\Routing\RouteProviderInterface
Mostra file Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$generators WellCommerce\Bundle\RoutingBundle\Generator\RouteGeneratorCollection Collection of route generators available in collection
$repository WellCommerce\Bundle\RoutingBundle\Repository\RouteRepositoryInterface

Public Methods

Method Description
__construct ( WellCommerce\Bundle\RoutingBundle\Generator\RouteGeneratorCollection $generators, WellCommerce\Bundle\RoutingBundle\Repository\RouteRepositoryInterface $repository ) Constructor
getRouteByName ( string $identifier ) : Symfony\Component\Routing\Route Returns route by its identifier
getRouteCollectionForRequest ( Request $request ) : RouteCollection Returns route collection for current request
getRoutesByNames ( $names, $parameters = [] )

Private Methods

Method Description
createRoute ( WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface $resource ) : null | Symfony\Component\Routing\Route Creates a route
getNormalizedPath ( Request $request ) : mixed Returns normalized path used in resource query

Method Details

__construct() public method

Constructor
public __construct ( WellCommerce\Bundle\RoutingBundle\Generator\RouteGeneratorCollection $generators, WellCommerce\Bundle\RoutingBundle\Repository\RouteRepositoryInterface $repository )
$generators WellCommerce\Bundle\RoutingBundle\Generator\RouteGeneratorCollection
$repository WellCommerce\Bundle\RoutingBundle\Repository\RouteRepositoryInterface

getRouteByName() public method

Returns route by its identifier
public getRouteByName ( string $identifier ) : Symfony\Component\Routing\Route
$identifier string
return Symfony\Component\Routing\Route

getRouteCollectionForRequest() public method

Returns route collection for current request
public getRouteCollectionForRequest ( Request $request ) : RouteCollection
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\Routing\RouteCollection

getRoutesByNames() public method

public getRoutesByNames ( $names, $parameters = [] )

Property Details

$generators protected_oe property

Collection of route generators available in collection
protected RouteGeneratorCollection,WellCommerce\Bundle\RoutingBundle\Generator $generators
return WellCommerce\Bundle\RoutingBundle\Generator\RouteGeneratorCollection

$repository protected_oe property

protected RouteRepositoryInterface,WellCommerce\Bundle\RoutingBundle\Repository $repository
return WellCommerce\Bundle\RoutingBundle\Repository\RouteRepositoryInterface