fenom / entity-loader
Fenom extension: set you rule for tag and modifier loader
1.0.1
2015-01-29 19:57 UTC
Requires
- php: >=5.4.8
Requires (Dev)
- fenom/fenom: 2.*
- phpunit/phpunit: *
- satooshi/php-coveralls: dev-master
This package is auto-updated.
Last update: 2024-11-29 04:52:13 UTC
README
Install
Use composer:
{ "require": { "fenom/entity-loader": "1.*" } }
Setup
Add trait into your Fenom class:
class MyFenom extends Fenom { use Fenom\EntityLoaderTrait; }
Use
$fenom->addModifierLoader(function ($modifier_name, Fenom\Template $tpl) {}); $fenom->addTagLoader(function ($tag_name, Fenom\Template $tpl) {});