coosos/edition-approval-bundle

This package is abandoned and no longer maintained. The author suggests using the coosos/version-workflow-bundle package instead.

Create an entity for editing and replace the old if approved with the same id

dev-master 2018-03-05 20:33 UTC

This package is auto-updated.

Last update: 2019-11-30 00:06:54 UTC


README

WARNING : This bundle may contain several bugs, it has not been checked for all cases and still lacks functionality !

Requirements

  • Symfony : 3.x
  • PHP : 7.0 and greater
  • Doctrine/orm : 2.5

Installation

Step 1 : Download the bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle :

$ composer require coosos/edition-approval-bundle

This command is used if composer is installed in your system.

Step 2: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project :

// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Coosos\EditionApprovalBundle\CoososEditionApprovalBundle(),
        );
        // ...
    }
    // ...
}

Usage

Add trait in entity file

To edit ...

Use service in controller

To edit ...

Get entity published

To edit ...