PHP code example of dreamcommerce / object-audit-bundle
1. Go to this page and download the library: Download dreamcommerce/object-audit-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dreamcommerce / object-audit-bundle example snippets
use Doctrine\ORM\Mapping as ORM;
use DreamCommerce\Component\ObjectAudit\Mapping\Annotation as Audit;
/**
* @ORM\Entity()
* @Audit\Auditable()
*/
class Page {
//...
}
php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
//...
new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
new DreamCommerce\Bundle\CommonBundle\DreamCommerceCommonBundle(),
new DreamCommerce\Bundle\ObjectAuditBundle\DreamCommerceObjectAuditBundle(),
//...
);
return $bundles;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.