/custom-policy-example-bundle

Example of integration the custom policy with UI for eZ Platform v1.X and v2.X.

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

custom-policy-example-bundle

This repository contains example of integration the custom policy with UI for eZ Platform v1.X and v2.X.

Installation

  1. Add the following repository to composer.json:
"repositories": [
    { 
        "type": "vcs", 
        "url": "https://github.com/adamwojs/custom-policy-example-bundle.git" 
    }
]
  1. Require the bundle with composer
composer require "adamwojs/custom-policy-example-bundle" "dev-master"
  1. Enable the bundle in the kernel:
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new AdamWojs\CustomPolicyExampleBundle\CustomPolicyExampleBundle(),  
        // ...
    );
    
    // ...
}
  1. Done. In the "Add a new policy" form you will be able to select "Custom module / Custom function"