PHP Interface WellCommerce\Bundle\RoutingBundle\Generator\RouteGeneratorInterface

Author: Adam Piotrowski ([email protected])
显示文件 Open project: wellcommerce/wellcommerce

Public Methods

Method Description
generate ( WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface $entity ) : Symfony\Component\Routing\Route Generates real Symfony route using given entity
supports ( string $strategy ) : boolean Checks whether generator can handle such a type of generation strategy

Method Details

generate() public method

Generates real Symfony route using given entity
public generate ( WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface $entity ) : Symfony\Component\Routing\Route
$entity WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface
return Symfony\Component\Routing\Route

supports() public method

Checks whether generator can handle such a type of generation strategy
public supports ( string $strategy ) : boolean
$strategy string
return boolean