Download the PHP package astina/domain-events-bundle without Composer
On this page you can find all versions of the php package astina/domain-events-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download astina/domain-events-bundle
More information about astina/domain-events-bundle
Files in astina/domain-events-bundle
Download astina/domain-events-bundle
More information about astina/domain-events-bundle
Files in astina/domain-events-bundle
Vendor astina
Package domain-events-bundle
Short Description Configure services as Doctrine domain event listeners.
License
Homepage https://github.com/astina/AstinaDomainEventsBundle
Package domain-events-bundle
Short Description Configure services as Doctrine domain event listeners.
License
Homepage https://github.com/astina/AstinaDomainEventsBundle
Please rate this library. Is it a good library?
Informations about the package domain-events-bundle
Astina Domain Events Bundle
Configure services as Doctrine domain event listeners.
Note: this bundle is not production ready as it requires the master version of DoctrineBundle.
Installation
Step 1: Add to composer.json
Step 2: Enable the bundle
Enable the bundle in the kernel:
Usage
Create subscriber service:
Read more about the (optional) $event parameter in the Doctrine documentation about Entity Listeners.
Configure domain event subscriber:
Note that the method name in the subscriber service corresponds with the event name.
Available events:
- prePersist
- postPersist
- preUpdate
- postUpdate
- preRemove
- postRemove
- preFlush
- postLoad
Todo
Add possibility to subscribe to changes on specific fields.
All versions of domain-events-bundle with dependencies
PHP Build Version
Package Version
Requires
doctrine/doctrine-bundle Version
dev-entity_listener_resolver
The package astina/domain-events-bundle contains the following files
Loading the files please wait ....