├── .github └── workflows │ └── symfony.yml ├── .gitignore ├── .gitlab-ci.yml ├── Attribute ├── Change.php ├── Create.php ├── Delete.php ├── IgnoreClassUpdates.php └── Update.php ├── DependencyInjection ├── Configuration.php └── W3CLifecycleEventsExtension.php ├── Event ├── Definitions │ └── LifecycleEvents.php ├── LifecycleCollectionChangedEvent.php ├── LifecycleDeletionEvent.php ├── LifecycleEvent.php ├── LifecyclePropertyChangedEvent.php ├── LifecycleUpdateEvent.php └── PreAutoDispatchEvent.php ├── EventListener ├── LifecycleEventsListener.php ├── LifecyclePropertyEventsListener.php └── PostFlushListener.php ├── LICENSE.md ├── README.md ├── Resources └── config │ └── services.yml ├── Services ├── AttributeGetter.php └── LifecycleEventsDispatcher.php ├── Tests ├── Attribute │ ├── ChangeTest.php │ ├── CreateTest.php │ ├── DeleteTest.php │ ├── Fixtures │ │ ├── Person.php │ │ ├── PersonNoMonitor.php │ │ ├── User.php │ │ ├── UserClass.php │ │ ├── UserErrorChange.php │ │ ├── UserErrorCreate.php │ │ ├── UserErrorDelete.php │ │ ├── UserErrorIgnore.php │ │ ├── UserErrorUpdate.php │ │ ├── UserEvent.php │ │ └── UserEvent2.php │ ├── IgnoreTest.php │ └── UpdateTest.php ├── Event │ ├── LifecycleCollectionChangedEventTest.php │ ├── LifecycleDeletionEventTest.php │ ├── LifecycleEventTest.php │ ├── LifecyclePropertyChangedEventTest.php │ ├── LifecycleUpdateEventTest.php │ └── PreAutoDispatchEventTest.php ├── EventListener │ ├── Fixtures │ │ ├── OtherEntity.php │ │ ├── UserChange.php │ │ ├── UserClassUpdateCollection.php │ │ ├── UserClassUpdateIgnoreCollection.php │ │ ├── UserClassUpdateIgnoreNoCollection.php │ │ ├── UserClassUpdateNoCollection.php │ │ └── UserNoAnnotation.php │ ├── LifecycleEventsListenerInverseNoMonitorTest.php │ ├── LifecycleEventsListenerInverseTest.php │ ├── LifecycleEventsListenerTest.php │ ├── LifecyclePropertyEventsListenerTest.php │ └── PostFlushListenerTest.php └── Services │ ├── AttributeGetterTest.php │ ├── Events │ ├── MyCollectionChangedEvent.php │ ├── MyLifecycleEvent.php │ ├── MyPropertyChangedEvent.php │ └── MyUpdatedEvent.php │ ├── Fixtures │ └── MySubscriber.php │ └── LifecycleEventsDispatcherTest.php ├── W3CLifecycleEventsBundle.php ├── composer.json ├── phpunit.xml └── w3c.json /.github/workflows/symfony.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/.github/workflows/symfony.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/* 2 | composer.lock 3 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/.gitlab-ci.yml -------------------------------------------------------------------------------- /Attribute/Change.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Attribute/Change.php -------------------------------------------------------------------------------- /Attribute/Create.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Attribute/Create.php -------------------------------------------------------------------------------- /Attribute/Delete.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Attribute/Delete.php -------------------------------------------------------------------------------- /Attribute/IgnoreClassUpdates.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Attribute/IgnoreClassUpdates.php -------------------------------------------------------------------------------- /Attribute/Update.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Attribute/Update.php -------------------------------------------------------------------------------- /DependencyInjection/Configuration.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/DependencyInjection/Configuration.php -------------------------------------------------------------------------------- /DependencyInjection/W3CLifecycleEventsExtension.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/DependencyInjection/W3CLifecycleEventsExtension.php -------------------------------------------------------------------------------- /Event/Definitions/LifecycleEvents.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Event/Definitions/LifecycleEvents.php -------------------------------------------------------------------------------- /Event/LifecycleCollectionChangedEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Event/LifecycleCollectionChangedEvent.php -------------------------------------------------------------------------------- /Event/LifecycleDeletionEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Event/LifecycleDeletionEvent.php -------------------------------------------------------------------------------- /Event/LifecycleEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Event/LifecycleEvent.php -------------------------------------------------------------------------------- /Event/LifecyclePropertyChangedEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Event/LifecyclePropertyChangedEvent.php -------------------------------------------------------------------------------- /Event/LifecycleUpdateEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Event/LifecycleUpdateEvent.php -------------------------------------------------------------------------------- /Event/PreAutoDispatchEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Event/PreAutoDispatchEvent.php -------------------------------------------------------------------------------- /EventListener/LifecycleEventsListener.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/EventListener/LifecycleEventsListener.php -------------------------------------------------------------------------------- /EventListener/LifecyclePropertyEventsListener.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/EventListener/LifecyclePropertyEventsListener.php -------------------------------------------------------------------------------- /EventListener/PostFlushListener.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/EventListener/PostFlushListener.php -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/README.md -------------------------------------------------------------------------------- /Resources/config/services.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Resources/config/services.yml -------------------------------------------------------------------------------- /Services/AttributeGetter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Services/AttributeGetter.php -------------------------------------------------------------------------------- /Services/LifecycleEventsDispatcher.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Services/LifecycleEventsDispatcher.php -------------------------------------------------------------------------------- /Tests/Attribute/ChangeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/ChangeTest.php -------------------------------------------------------------------------------- /Tests/Attribute/CreateTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/CreateTest.php -------------------------------------------------------------------------------- /Tests/Attribute/DeleteTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/DeleteTest.php -------------------------------------------------------------------------------- /Tests/Attribute/Fixtures/Person.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/Fixtures/Person.php -------------------------------------------------------------------------------- /Tests/Attribute/Fixtures/PersonNoMonitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/Fixtures/PersonNoMonitor.php -------------------------------------------------------------------------------- /Tests/Attribute/Fixtures/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/Fixtures/User.php -------------------------------------------------------------------------------- /Tests/Attribute/Fixtures/UserClass.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/Fixtures/UserClass.php -------------------------------------------------------------------------------- /Tests/Attribute/Fixtures/UserErrorChange.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/Fixtures/UserErrorChange.php -------------------------------------------------------------------------------- /Tests/Attribute/Fixtures/UserErrorCreate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/Fixtures/UserErrorCreate.php -------------------------------------------------------------------------------- /Tests/Attribute/Fixtures/UserErrorDelete.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/Fixtures/UserErrorDelete.php -------------------------------------------------------------------------------- /Tests/Attribute/Fixtures/UserErrorIgnore.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/Fixtures/UserErrorIgnore.php -------------------------------------------------------------------------------- /Tests/Attribute/Fixtures/UserErrorUpdate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/Fixtures/UserErrorUpdate.php -------------------------------------------------------------------------------- /Tests/Attribute/Fixtures/UserEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/Fixtures/UserEvent.php -------------------------------------------------------------------------------- /Tests/Attribute/Fixtures/UserEvent2.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/Fixtures/UserEvent2.php -------------------------------------------------------------------------------- /Tests/Attribute/IgnoreTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/IgnoreTest.php -------------------------------------------------------------------------------- /Tests/Attribute/UpdateTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Attribute/UpdateTest.php -------------------------------------------------------------------------------- /Tests/Event/LifecycleCollectionChangedEventTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Event/LifecycleCollectionChangedEventTest.php -------------------------------------------------------------------------------- /Tests/Event/LifecycleDeletionEventTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Event/LifecycleDeletionEventTest.php -------------------------------------------------------------------------------- /Tests/Event/LifecycleEventTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Event/LifecycleEventTest.php -------------------------------------------------------------------------------- /Tests/Event/LifecyclePropertyChangedEventTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Event/LifecyclePropertyChangedEventTest.php -------------------------------------------------------------------------------- /Tests/Event/LifecycleUpdateEventTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Event/LifecycleUpdateEventTest.php -------------------------------------------------------------------------------- /Tests/Event/PreAutoDispatchEventTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Event/PreAutoDispatchEventTest.php -------------------------------------------------------------------------------- /Tests/EventListener/Fixtures/OtherEntity.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/Fixtures/OtherEntity.php -------------------------------------------------------------------------------- /Tests/EventListener/Fixtures/UserChange.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/Fixtures/UserChange.php -------------------------------------------------------------------------------- /Tests/EventListener/Fixtures/UserClassUpdateCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/Fixtures/UserClassUpdateCollection.php -------------------------------------------------------------------------------- /Tests/EventListener/Fixtures/UserClassUpdateIgnoreCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/Fixtures/UserClassUpdateIgnoreCollection.php -------------------------------------------------------------------------------- /Tests/EventListener/Fixtures/UserClassUpdateIgnoreNoCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/Fixtures/UserClassUpdateIgnoreNoCollection.php -------------------------------------------------------------------------------- /Tests/EventListener/Fixtures/UserClassUpdateNoCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/Fixtures/UserClassUpdateNoCollection.php -------------------------------------------------------------------------------- /Tests/EventListener/Fixtures/UserNoAnnotation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/Fixtures/UserNoAnnotation.php -------------------------------------------------------------------------------- /Tests/EventListener/LifecycleEventsListenerInverseNoMonitorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/LifecycleEventsListenerInverseNoMonitorTest.php -------------------------------------------------------------------------------- /Tests/EventListener/LifecycleEventsListenerInverseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/LifecycleEventsListenerInverseTest.php -------------------------------------------------------------------------------- /Tests/EventListener/LifecycleEventsListenerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/LifecycleEventsListenerTest.php -------------------------------------------------------------------------------- /Tests/EventListener/LifecyclePropertyEventsListenerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/LifecyclePropertyEventsListenerTest.php -------------------------------------------------------------------------------- /Tests/EventListener/PostFlushListenerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/EventListener/PostFlushListenerTest.php -------------------------------------------------------------------------------- /Tests/Services/AttributeGetterTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Services/AttributeGetterTest.php -------------------------------------------------------------------------------- /Tests/Services/Events/MyCollectionChangedEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Services/Events/MyCollectionChangedEvent.php -------------------------------------------------------------------------------- /Tests/Services/Events/MyLifecycleEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Services/Events/MyLifecycleEvent.php -------------------------------------------------------------------------------- /Tests/Services/Events/MyPropertyChangedEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Services/Events/MyPropertyChangedEvent.php -------------------------------------------------------------------------------- /Tests/Services/Events/MyUpdatedEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Services/Events/MyUpdatedEvent.php -------------------------------------------------------------------------------- /Tests/Services/Fixtures/MySubscriber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Services/Fixtures/MySubscriber.php -------------------------------------------------------------------------------- /Tests/Services/LifecycleEventsDispatcherTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/Tests/Services/LifecycleEventsDispatcherTest.php -------------------------------------------------------------------------------- /W3CLifecycleEventsBundle.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/W3CLifecycleEventsBundle.php -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/phpunit.xml -------------------------------------------------------------------------------- /w3c.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/W3CLifecycleEventsBundle/HEAD/w3c.json --------------------------------------------------------------------------------