PHP Class WellCommerce\Bundle\RoutingBundle\EventListener\RoutableSubscriber

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

Protected Properties

Property Type Description
$routingDiscriminatorsMap array

Public Methods

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

Protected Methods

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

Method Details

__construct() public method

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

addRoute() protected method

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

getSubscribedEvents() public method

public getSubscribedEvents ( )

loadClassMetadata() public method

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

prePersist() public method

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
return array