BreadcrumbListener
class BreadcrumbListener extends MappedEventSubscriber
Class BreadcrumbListener is injected as empire_breadcrumb.listener service. BreadcrumbListener is listener class for handling a logic for creating breadcrumb
Properties
| static protected array | $configurations | Static List of cached object configurations leaving it static for reasons to look into other listener configuration | from MappedEventSubscriber |
| protected string | $name | Listener name, etc: breadcrumable | from MappedEventSubscriber |
Methods
Get the configuration for specific object class if cache driver is present it scans it also
Get extended metadata mapping reader
Set annotation reader class since older doctrine versions do not provide an interface it must provide these methods: getClassAnnotations([reflectionClass]) getClassAnnotation([reflectionClass], [name]) getPropertyAnnotations([reflectionProperty]) getPropertyAnnotation([reflectionProperty], [name])
Scans the objects for extended annotations event subscribers must subscribe to loadClassMetadata event
Get the namespace of extension event subscriber.
Get an event adapter to handle event specific methods
Specifies the list of events to listen
Allows identifier fields to be breadcrumbed as usual
Generate breadcrumb on objects being updated during flush if they require changing
Mapps additional metadata
Details
in MappedEventSubscriber at line 69
__construct()
Constructor
in MappedEventSubscriber at line 85
array
getConfiguration(ObjectManager $objectManager, string $class)
Get the configuration for specific object class if cache driver is present it scans it also
in MappedEventSubscriber at line 125
ExtensionMetadataFactory
getExtensionMetadataFactory(ObjectManager $objectManager)
Get extended metadata mapping reader
in MappedEventSubscriber at line 154
setAnnotationReader(Reader $reader)
Set annotation reader class since older doctrine versions do not provide an interface it must provide these methods: getClassAnnotations([reflectionClass]) getClassAnnotation([reflectionClass], [name]) getPropertyAnnotations([reflectionProperty]) getPropertyAnnotation([reflectionProperty], [name])
in MappedEventSubscriber at line 169
void
loadMetadataForObjectClass(ObjectManager $objectManager, object $metadata)
Scans the objects for extended annotations event subscribers must subscribe to loadClassMetadata event
at line 150
protected string
getNamespace()
Get the namespace of extension event subscriber.
used for cache id of extensions also to know where to find Mapping drivers and event adapters
in MappedEventSubscriber at line 200
protected ORM
getEventAdapter(EventArgs $args)
Get an event adapter to handle event specific methods
at line 52
array
getSubscribedEvents()
Specifies the list of events to listen
at line 68
void
prePersist(EventArgs $args)
Allows identifier fields to be breadcrumbed as usual
at line 95
void
onFlush(EventArgs $args)
Generate breadcrumb on objects being updated during flush if they require changing
at line 137
void
loadClassMetadata(EventArgs $eventArgs)
Mapps additional metadata