PHP Класс WellCommerce\Bundle\RoutingBundle\Provider\RouteProvider

Автор: Adam Piotrowski ([email protected])
Наследование: implements Symfony\Cmf\Component\Routing\RouteProviderInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$generators WellCommerce\Bundle\RoutingBundle\Generator\RouteGeneratorCollection Collection of route generators available in collection
$repository WellCommerce\Bundle\RoutingBundle\Repository\RouteRepositoryInterface

Открытые методы

Метод Описание
__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 = [] )

Приватные методы

Метод Описание
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

Описание методов

__construct() публичный Метод

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() публичный Метод

Returns route by its identifier
public getRouteByName ( string $identifier ) : Symfony\Component\Routing\Route
$identifier string
Результат Symfony\Component\Routing\Route

getRouteCollectionForRequest() публичный Метод

Returns route collection for current request
public getRouteCollectionForRequest ( Request $request ) : RouteCollection
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\Routing\RouteCollection

getRoutesByNames() публичный Метод

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

Описание свойств

$generators защищенное свойство

Collection of route generators available in collection
protected RouteGeneratorCollection,WellCommerce\Bundle\RoutingBundle\Generator $generators
Результат WellCommerce\Bundle\RoutingBundle\Generator\RouteGeneratorCollection

$repository защищенное свойство

protected RouteRepositoryInterface,WellCommerce\Bundle\RoutingBundle\Repository $repository
Результат WellCommerce\Bundle\RoutingBundle\Repository\RouteRepositoryInterface