enlitepro / enlite-russell-interpreter
v1.0.2
2015-05-15 08:50 UTC
Requires
- php: >=5.4
- enlitepro/russell-interpreter: ~1.0.3
- zendframework/zendframework: ~2.2
Requires (Dev)
- enlitepro/zf2-scaffold: ~1.0.0
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
- 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'] ] ] ],
USAGE
New functions you must register in ExtensionsManager
in EnliteRussellInterpreterExtensionsManager
section:
'EnliteRussellInterpreterExtensionsManager' => array( 'invokables' => array( 'myFavoriteFunction' => 'MyModule\Extension\MyFavoriteFunction', ) )