PHP Class WellCommerce\Bundle\RoutingBundle\Generator\AbstractRouteGenerator

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\RoutingBundle\Generator\RouteGeneratorInterface
Mostrar archivo Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$defaults array
$options array
$pattern array
$requirements array

Public Methods

Method Description
__construct ( array $defaults = [], array $requirements = [], string $pattern, array $options = [] ) AbstractRouteGenerator constructor.
generate ( WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface $resource ) : Symfony\Component\Routing\Route

Protected Methods

Method Description
getPath ( WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface $resource ) : string Returns a concatenated path

Private Methods

Method Description
prepareRouteDefaults ( WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface $resource )

Method Details

__construct() public method

AbstractRouteGenerator constructor.
public __construct ( array $defaults = [], array $requirements = [], string $pattern, array $options = [] )
$defaults array
$requirements array
$pattern string
$options array

generate() public method

public generate ( WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface $resource ) : Symfony\Component\Routing\Route
$resource WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface
return Symfony\Component\Routing\Route

getPath() protected method

Returns a concatenated path
protected getPath ( WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface $resource ) : string
$resource WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface
return string

Property Details

$defaults protected_oe property

protected array $defaults
return array

$options protected_oe property

protected array $options
return array

$pattern protected_oe property

protected array $pattern
return array

$requirements protected_oe property

protected array $requirements
return array