enlitepro/enlite-russell-interpreter

v1.0.2 2015-05-15 08:50 UTC

This package is not auto-updated.

Last update: 2024-10-26 14:46:06 UTC


README

The ZF2 module for the module RussellInterpreter (https://github.com/enlitepro/russell-interpreter)

INSTALL

  1. The recommended way to install is through composer.
{
    "require": {
        "enlitepro/enlite-russellInterpreter": "1.0.*"
    }
}
  1. Add EnliteRussellInterpreter to your config/application.config.php to enable module.

  2. Register interpreter in InterpreterAbstractFactory:

'EnliteRussellInterpreters' => [
        'youInterpreter' => [
            'use_default_extensions' => true,
            'extensions' => [
                'myFavoriteFunction' => ['synonym1', 'synonym2']
            ]
        ]
    ],

USAGE

New functions you must register in ExtensionsManager in EnliteRussellInterpreterExtensionsManager section:

'EnliteRussellInterpreterExtensionsManager' => array(
        'invokables' => array(
            'myFavoriteFunction' => 'MyModule\Extension\MyFavoriteFunction',
        )
    )