This repository contains example of integration the custom policy with UI for eZ Platform v1.X and v2.X.
- Add the following repository to
composer.json
:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/adamwojs/custom-policy-example-bundle.git"
}
]
- Require the bundle with composer
composer require "adamwojs/custom-policy-example-bundle" "dev-master"
- Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new AdamWojs\CustomPolicyExampleBundle\CustomPolicyExampleBundle(),
// ...
);
// ...
}
- Done. In the "Add a new policy" form you will be able to select "Custom module / Custom function"