Download the PHP package stevecohenfr/legacy-publish-handler-bundle without Composer
On this page you can find all versions of the php package stevecohenfr/legacy-publish-handler-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stevecohenfr/legacy-publish-handler-bundle
More information about stevecohenfr/legacy-publish-handler-bundle
Files in stevecohenfr/legacy-publish-handler-bundle
Package legacy-publish-handler-bundle
Short Description Bundle to handle content pre/post publish from LegacyBridge to Symfony
License MIT
Informations about the package legacy-publish-handler-bundle
LegacyPublishHandlerBundle
Bundle to handle content pre/post publish from LegacyBridge to Symfony
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:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Deploy the legacy extension:
And clear the cache:
Step 3: Create the workflow and trigger it
- Go to Administration -> Workflows
- Create a new workflow group or use "Standard"
- Create a new Workflow process and name it as you want
- In the dropdown choose "Legacy Publish Handler
- Save
- Go to Administration -> Triggers
- At the line "content publish after" or "content publish before", use the dropdown to choose your previously created Worlflow
Step 4: Handle the publish event
This handler use the tag 'legacy.publish_handler' :
service.yml
ACME\ACMEBundle\Handlers\OnPublishHandler.php