Closed fagundes closed 8 years ago
I added some decorators in my Module.php to get \ZfTable\Decorator\DecoratorFactory::getPluginManager();. Now use setInvokableClass to add our own Decoration.
I hope this can help you.
Thank you! It should work!
However, it's not the standard way, I mean it's not like others zf2 service managers. But I suppose it's the only way for now.
Decorators which depends of others services won't work. For instance, a Link Decorator that depends of BasePath Helper. In other words, I can't register a Factory for Decorator.
I'm new with ZfTable. I was reading the code and documentation but I couldn't find a way to add my own decorators classes.
I guess that It will need some changes on DecoratorFactory and Module::onBootstrap to anyone be able to add on their own modules (Module.php or config files) to inject in DecoratorPluginManager more decorators. Am I right?