Skip to content

Commit

Permalink
Initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Mar 7, 2018
0 parents commit ad77f21
Show file tree
Hide file tree
Showing 8 changed files with 2,571 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor/
composer.lock
340 changes: 340 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

61 changes: 61 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Legacy Operations Bridge

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.
26 changes: 26 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "netgen/legacy-operations-bridge",
"description": "Netgen's eZ Publish Legacy to eZ Platform bridge",
"license": "GPL-2.0-only",
"type": "ezpublish-legacy-extension",
"keywords": [
"ezpublish",
"ezplatform",
"netgen"
],
"authors": [
{
"name": "Petar Španja",
"email": "petar@spanja.info"
}
],
"require": {
"ezsystems/ezpublish-legacy-installer": "*"
},
"extra": {
"ezpublish-legacy-extension-name": "ngoperationsbridge",
"branch-alias": {
"dev-master": "1.0.x-dev"
}
}
}
2 changes: 2 additions & 0 deletions extension.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" ?>
<software />
Loading

0 comments on commit ad77f21

Please sign in to comment.