PHP 클래스 WellCommerce\Bundle\RoutingBundle\Provider\RouteProvider

저자: Adam Piotrowski ([email protected])
상속: implements Symfony\Cmf\Component\Routing\RouteProviderInterface
파일 보기 프로젝트 열기: wellcommerce/wellcommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$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