2017 © Pedro Peláez
 

symfony-bundle audit-ui-bundle

UI for displaying Datadog audits in Symfony 2/3

image

vouchedfor/audit-ui-bundle

UI for displaying Datadog audits in Symfony 2/3

  • Thursday, March 9, 2017
  • by vouchedfor
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1,504 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Audit Ui Bundle

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)

Installation

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

Usage

Navigate to admin/audit (assuming you've used the default routing above) to see the list of audited changes., (*7)

Overriding templates

Templates (e.g. diff.html.twig) can be overridden at app/Resources/VouchedForAuditUiBundle/views/Default, (*8)

License

The Audit Ui Bundle is free to use and is licensed under the MIT license, (*9)

The Versions

09/03 2017

dev-master

9999999-dev https://github.com/vouchedfor/AuditUiBundle

UI for displaying Datadog audits in Symfony 2/3

  Sources   Download

MIT

The Requires