PHP Class WellCommerce\Bundle\RoutingBundle\EventListener\RoutableSubscriber

Author: Adam Piotrowski ([email protected])
Inheritance: implements Doctrine\Common\EventSubscriber
Afficher le fichier Open project: wellcommerce/wellcommerce

Protected Properties

Свойство Type Description
$routingDiscriminatorsMap array

Méthodes publiques

Méthode Description
__construct ( array $routingDiscriminatorsMap = [] ) RoutableSubscriber constructor.
getSubscribedEvents ( )
loadClassMetadata ( Doctrine\ORM\Event\LoadClassMetadataEventArgs $eventArgs )
prePersist ( Doctrine\ORM\Event\LifecycleEventArgs $args ) Add Route for new entity

Méthodes protégées

Méthode Description
addRoute ( WellCommerce\Bundle\RoutingBundle\Entity\RoutableSubjectInterface $entity ) : WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface Adds new route

Method Details

__construct() public méthode

RoutableSubscriber constructor.
public __construct ( array $routingDiscriminatorsMap = [] )
$routingDiscriminatorsMap array

addRoute() protected méthode

Adds new route
protected addRoute ( WellCommerce\Bundle\RoutingBundle\Entity\RoutableSubjectInterface $entity ) : WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface
$entity WellCommerce\Bundle\RoutingBundle\Entity\RoutableSubjectInterface
Résultat WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface

getSubscribedEvents() public méthode

public getSubscribedEvents ( )

loadClassMetadata() public méthode

public loadClassMetadata ( Doctrine\ORM\Event\LoadClassMetadataEventArgs $eventArgs )
$eventArgs Doctrine\ORM\Event\LoadClassMetadataEventArgs

prePersist() public méthode

Add Route for new entity
public prePersist ( Doctrine\ORM\Event\LifecycleEventArgs $args )
$args Doctrine\ORM\Event\LifecycleEventArgs

Property Details

$routingDiscriminatorsMap protected_oe property

protected array $routingDiscriminatorsMap
Résultat array