ibrows / loggable-bundle
Extended Loggable Bundle
Installs: 3 608
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- stof/doctrine-extensions-bundle: ^1.2.0
- symfony/symfony: ^3.0|^4.0|^5.0|^6.0
This package is auto-updated.
Last update: 2024-11-27 23:37:59 UTC
README
Symfony2 Bundle that will track every Entity change on your Project and save it to a log table. Your Project get's some kind of confirmability with this Bundle.
It also provide some methods to get back an entity to a earlier version.
Install & setup the bundle
-
Add IbrowsLoggableBundle in your composer.json:
{ "require": { "ibrows/loggable-bundle": "~1.0", } }
-
Now tell composer to download the bundle by running the command:
$ php composer.phar update ibrows/loggable-bundle
Composer will install the bundle to your project's
ibrows/loggable-bundle
directory. ( PSR-4 ) -
Add the bundles to your
AppKernel
class// app/AppKernerl.php public function registerBundles() { $bundles = array( // ... new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(), new Ibrows\LoggableBundle\IbrowsLoggableBundle(), // ... ); // ... }
-
Recommend config of stof_doctrine_extensions
stof_doctrine_extensions: orm: default: softdeleteable: true loggable: true class: loggable: Ibrows\LoggableBundle\Listener\LoggableListener