2017 © Pedro Peláez
 

library ezlegacy-tools-bundle

Novactive eZ Publish Legacy Tools Bundle

image

novactive/ezlegacy-tools-bundle

Novactive eZ Publish Legacy Tools Bundle

  • Saturday, February 24, 2018
  • by NovaDT
  • Repository
  • 4 Watchers
  • 1 Stars
  • 413 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 10 Versions
  • 46 % Grown

The README.md

Novactive eZ Publish Legacy Tools bundle

About

This bundle provides post Composer install/update scripts to :, (*1)

  • install legacy settings from a bundle (the same way legacy extensions are managed natively)
  • execute legacy scripts

Configuration

You can add the following extra parameters into your project's composer file :, (*2)

Configuration Type Description
legacy-settings-install array of strings ezpublish:legacybundles:install_settings command options. Possible entries : copy, symlink, force
legacy-scripts-execution array of strings List of legacy scripts (with params) to be executed

Installation

With composer :, (*3)

php composer.phar require novactive/ezlegacy-tools-bundle 

Enable the bundle :, (*4)

<?php
// ezpublish/EzPublishKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Novactive\EzLegacyToolsBundle\NovactiveEzLegacyToolsBundle(),
    );
}

Legacy settings installation

Add the following line to your composer.json file :, (*5)

...
"scripts": {
    ...
    "post-install-cmd": [
        ...,
        "Novactive\\EzLegacyToolsBundle\\Composer\\ScriptHandler::installLegacyBundlesSettings"
    ],
    "post-update-cmd": [
        ...,
        "Novactive\\EzLegacyToolsBundle\\Composer\\ScriptHandler::installLegacyBundlesSettings"
    ]
}
...,
"extra": {
    ...,
    "legacy-settings-install": ["force", "relative"]
},
...

Legacy scripts execution

Add the following line to your composer.json file :, (*6)

...
"scripts": {
    ...
    "post-install-cmd": [
        ...,
        "Novactive\\EzLegacyToolsBundle\\Composer\\ScriptHandler::executeLegacyScripts"
    ],
    "post-update-cmd": [
        ...,
        "Novactive\\EzLegacyToolsBundle\\Composer\\ScriptHandler::executeLegacyScripts"
    ]
}
...,
"extra": {
    ...,
    "legacy-scripts-execution": [
        "bin/php/ezpgenerateautoloads.php --kernel",
        "bin/php/ezpgenerateautoloads.php --extension",
        "bin/php/ezpgenerateautoloads.php --kernel-override"
    ]
},
...

Usage

Legacy settings installation

The command will search for a legacy_settings folder in all project specific bundles. You can only have one bundle containing a legacy_settings directory otherwise an exception will be thrown., (*7)

The command will then search for a 'override' and 'siteaccess' directories in the legacy_settings directory., (*8)

Contributing

In order to be accepted, your contribution needs to pass a few controls :, (*9)

  • PHP files should be valid
  • PHP files should follow the PSR-2 standard
  • PHP files should be phpmd and phpcpd warning/error free

To ease the validation process, install the pre-commit framework and install the repository pre-commit hook :, (*10)

pre-commit install

Finally, in order to homogenize commit messages across contributors (and to ease generation of the CHANGELOG), please apply this git commit message hook onto your local repository., (*11)

The Versions

24/02 2018

1.x-dev

1.9999999.9999999.9999999-dev

Novactive eZ Publish Legacy Tools Bundle

  Sources   Download

MIT

The Development Requires

by Guillaume Maïssa

settings install legacy ez publish

24/02 2018

1.1.0

1.1.0.0

Novactive eZ Publish Legacy Tools Bundle

  Sources   Download

MIT

The Development Requires

by Guillaume Maïssa

settings install legacy ez publish

20/02 2018

dev-master

9999999-dev

Novactive eZ Publish Legacy Tools Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Maïssa

settings install legacy ez publish

20/02 2018

2.0.2

2.0.2.0

Novactive eZ Publish Legacy Tools Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Maïssa

settings install legacy ez publish

20/02 2018

dev-feat-ezp2-compliance

dev-feat-ezp2-compliance

Novactive eZ Publish Legacy Tools Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Maïssa

settings install legacy ez publish

27/06 2016

1.0.2

1.0.2.0

Novactive eZ Publish Legacy Tools Bundle

  Sources   Download

MIT

The Development Requires

by Guillaume Maïssa

settings install legacy ez publish

26/06 2016

dev-feature/manage-legacy-files

dev-feature/manage-legacy-files

Novactive eZ Publish Legacy Tools Bundle

  Sources   Download

MIT

The Development Requires

by Guillaume Maïssa

25/06 2016

dev-doc-fix-typo

dev-doc-fix-typo

Novactive eZ Publish Legacy Tools Bundle

  Sources   Download

MIT

The Development Requires

by Guillaume Maïssa

25/06 2016

1.0.1

1.0.1.0

Novactive eZ Publish Legacy Tools Bundle

  Sources   Download

MIT

The Development Requires

by Guillaume Maïssa

25/06 2016

1.0.0

1.0.0.0

Novactive eZ Publish Legacy Tools Bundle

  Sources   Download

MIT

The Development Requires

by Guillaume Maïssa