assoconnect / log-bundle
Requires
- php: ^8.4
- ext-json: *
- doctrine/dbal: ^3.6|^4.0
- doctrine/doctrine-bundle: ^2.12|^3.0
- doctrine/orm: ^2.20|^3.0
- moneyphp/money: ^3.2|^4.0
- ramsey/uuid: ^4.3
- ramsey/uuid-doctrine: ^1.4|^2.0
- symfony/framework-bundle: ^7.0|^8.0
- symfony/property-access: ^7.0|^8.0
- symfony/serializer: ^7.0|^8.0
- thecodingmachine/safe: ^3.4
Requires (Dev)
- assoconnect/php-quality-config: ^2.2
- phpstan/phpstan-symfony: ^2
- symfony/security-core: ^7.0|^8.0
- symfony/validator: ^7.0|^8.0
- symfony/var-exporter: ^7.0|^8.0
- symfony/yaml: ^7.0|^8.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v2.6.0
- v2.5.0
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.0
- v2.2.1
- v2.2.0
- 2.1.2
- 2.1.1
- v2.1.0
- v2.0.0
- v1.7.0
- v1.6.1
- v1.6.0
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.0
- dev-florian_IT9PE1-29241_symfony-8-support
- dev-feat/orm-3-dbal-4-support
- dev-lucasp-feature-28431-fix-get-entity-manager
- dev-flo_feature_doctrine_orm_3
- dev-jwa_fix_phpstan
This package is auto-updated.
Last update: 2026-08-25 13:28:09 UTC
README
Installation
composer require assoconnect/log-bundle
Description
This Symfony bundle provides a system creating a Log entity every time a fully Doctrine-managed entity is persisted, updated or removed.
The Log entity and the LogFactoryInterface have to be implemented.
A system of included and excluded entities can be used to decide which entities have to be logged.
Log.yaml format:
log:
log_filters:
includedEntities: ['App\Entity\includedEntity1', 'App\Entity\includedEntity2']
excludeEntities: ['App\Entity\excludedEntity1', 'App\Entity\excludedEntity2']
If both lists are empty, every entities will be logged. If only includedEntities is empty, everything will be logged unless the processed entity is an instanceof OR is_subclass_of at least one element of the exclude list.
If only excludeEntities is empty, only the entities instanceof OR is_subclass_of at least one element of the include list will be logged.
If both lists are not empty, the entity has to be an instanceof OR is_subclass_of at least one element of the include list AND NOT an instanceof or is_subclass_of at least one element of the exclude list.