The ZF2 module for the module RussellInterpreter (https://github.com/enlitepro/russell-interpreter)
- The recommended way to install is through composer.
{
"require": {
"enlitepro/enlite-russellInterpreter": "1.0.*"
}
}
-
Add
EnliteRussellInterpreter
to yourconfig/application.config.php
to enable module. -
Register interpreter in
InterpreterAbstractFactory
:
'EnliteRussellInterpreters' => [
'youInterpreter' => [
'use_default_extensions' => true,
'extensions' => [
'myFavoriteFunction' => ['synonym1', 'synonym2']
]
]
],
New functions you must register in ExtensionsManager
in EnliteRussellInterpreterExtensionsManager
section:
'EnliteRussellInterpreterExtensionsManager' => array(
'invokables' => array(
'myFavoriteFunction' => 'MyModule\Extension\MyFavoriteFunction',
)
)