This eZ Publish Legacy extension allows override of some operations to be performed using eZ Platform Repository API. Main motivation behind this is better integration of Legacy Admin UI with Solr Search Engine, which otherwise requires delayed indexing for some trivial operations, like adding another Location to Content.
eZ Platform uses a database connection separate from eZ Publish Legacy. If you use bridged operations inside a transaction initiated from eZ Publish Legacy database connection, the transaction will not apply to them.
In the ezpublish_legacy/config.php
enable kernel override by uncommenting the following constant
definition:
define( 'EZP_AUTOLOAD_ALLOW_KERNEL_OVERRIDE', true );
In your composer.json
add the call to generate kernel override autoload array to the bottom of
symfony-scripts
array under the scripts
key:
...
"scripts": {
"symfony-scripts": [
...
"eZ\\Bundle\\EzPublishLegacyBundle\\Composer\\ScriptHandler::generateKernelOverrideAutoloads"
],
...
},
...
Use Composer to install the bundle:
composer require netgen/legacy-operations-bridge:^1.0
Add the following in your central site.ini.append.php
file (usually ezpublish_legacy/settings/override/site.ini.append.php
):
[ExtensionSettings]
ActiveExtensions[]=ngoperationsbrige
...
See ngoperationsbridge.ini for available configuration options.