dev-master
9999999-dev https://github.com/vouchedfor/AuditUiBundleUI for displaying Datadog audits in Symfony 2/3
MIT
The Requires
UI for displaying Datadog audits in Symfony 2/3
This bundle creates a user interface for the audit log produced by https://github.com/DATA-DOG/DataDogAuditBundle., (*1)
It is based on the example provided by that bundle, but implemented in a more generic, out-of-the-box reusable way., (*2)
First, install it with composer:, (*3)
composer require vouchedfor/audit-ui-bundle:dev-master
Then, add the following in your AppKernel bundles (note that 'new DataDog\AuditBundle\DataDogAuditBundle(),' may have been added previously)., (*4)
// app/AppKernel.php public function registerBundles() { $bundles = array( ... new DataDog\AuditBundle\DataDogAuditBundle(), // Only add this if you haven't previously done so new DataDog\PagerBundle\DataDogPagerBundle(), new VouchedFor\AuditUiBundle\VouchedForAuditUiBundle(), ... ); ... }
Add the name of the class responsible for managing users to config.yml
. The example below assumes it's AppBundle\Entity\User:, (*5)
// app/config/config.yml vouched_for_audit_ui: user_class: AppBundle\Entity\User
Finally, add the routing (this assumes the route is prefixed with 'admin', that you'll probably want to protect behind a firewall in security.yml):, (*6)
// app/config/routing.yml vouchedfor_audit: resource: "@VouchedForAuditUiBundle/Controller/DefaultController.php" type: annotation prefix: /admin
Navigate to admin/audit (assuming you've used the default routing above) to see the list of audited changes., (*7)
Templates (e.g. diff.html.twig) can be overridden at app/Resources/VouchedForAuditUiBundle/views/Default, (*8)
The Audit Ui Bundle is free to use and is licensed under the MIT license, (*9)
UI for displaying Datadog audits in Symfony 2/3
MIT