PHP Class WellCommerce\Bundle\RoutingBundle\Generator\AbstractRouteGenerator

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

Protected Properties

Свойство Type Description
$defaults array
$options array
$pattern array
$requirements array

Méthodes publiques

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

Méthodes protégées

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

Private Methods

Méthode Description
prepareRouteDefaults ( WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface $resource )

Method Details

__construct() public méthode

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

generate() public méthode

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

getPath() protected méthode

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

Property Details

$defaults protected_oe property

protected array $defaults
Résultat array

$options protected_oe property

protected array $options
Résultat array

$pattern protected_oe property

protected array $pattern
Résultat array

$requirements protected_oe property

protected array $requirements
Résultat array