https://github.com/netgen/legacy-operations-bridge
Legacy eZ Publish operations to eZ Platform bridge
https://github.com/netgen/legacy-operations-bridge
Last synced: about 1 year ago
JSON representation
Legacy eZ Publish operations to eZ Platform bridge
- Host: GitHub
- URL: https://github.com/netgen/legacy-operations-bridge
- Owner: netgen
- License: gpl-2.0
- Created: 2018-03-07T11:57:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-21T10:07:34.000Z (almost 8 years ago)
- Last Synced: 2025-03-25T10:21:32.544Z (about 1 year ago)
- Language: PHP
- Homepage: https://netgen.io
- Size: 22.5 KB
- Stars: 4
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Legacy Operations Bridge
[](https://packagist.org/packages/netgen/legacy-operations-bridge/stats)
[](https://packagist.org/packages/netgen/legacy-operations-bridge)
[](LICENSE)
[](https://secure.php.net/)
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.
## Caution
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.
## Installation
#### 1. Enable kernel override and kernel override autoload
In the `ezpublish_legacy/config.php` enable kernel override by uncommenting the following constant
definition:
```php
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:
```yaml
...
"scripts": {
"symfony-scripts": [
...
"eZ\\Bundle\\EzPublishLegacyBundle\\Composer\\ScriptHandler::generateKernelOverrideAutoloads"
],
...
},
...
```
#### 2. Install through Composer
Use Composer to install the bundle:
```
composer require netgen/legacy-operations-bridge:^1.0
```
#### 3. Activate legacy `ngoperationsbrige` extension
Add the following in your central `site.ini.append.php` file (usually `ezpublish_legacy/settings/override/site.ini.append.php`):
```ini
[ExtensionSettings]
ActiveExtensions[]=ngoperationsbrige
...
```
## Configuration
See [ngoperationsbridge.ini](settings/ngoperationsbridge.ini) for available configuration
options.