[fw-general] Re: [ZF2] What's the proper way to register global MVC plugins?

2012-02-26 Thread cmple
Marco Pivetta wrote You can check https://github.com/ZF-Commons/ZfcUser/blob/master/src/ZfcUser/Controller/Plugin/ZfcUserAuthentication.php and https://github.com/ZF-Commons/ZfcUser/blob/master/config/module.config.php#L63 Marco Pivetta http://twitter.com/Ocramius

[fw-general] Re: [ZF2] What's the proper way to register global MVC plugins?

2012-02-26 Thread Marco Pivetta
As you can see from the plugin I've linked, plugins are just registered in the pluginLoader. I would just create a new plugin class extending the AbstractPlugin as ZfcUserAuthentication does and then map it to myAcl for examle. Then you should be able to use it with $this-myAcl()-isAllowed() in

[fw-general] Re: [ZF2] What's the proper way to register global MVC plugins?

2012-02-26 Thread cmple
Marco Pivetta wrote As you can see from the plugin I've linked, plugins are just registered in the pluginLoader. I would just create a new plugin class extending the AbstractPlugin as ZfcUserAuthentication does and then map it to myAcl for examle. Then you should be able to use it with