neilime / zf2-assets-bundle

AssetsBundle is a module for Zend Framework 2 allowing asset managment (bundling & caching)
https://neilime.github.io/zf2-assets-bundle/
MIT License
33 stars 20 forks source link

handle empty action name #12

Closed dready closed 11 years ago

dready commented 11 years ago

In my setup i have a mix of normal controllers for serving views and a rest api for data transaction.

Unfortunately AssetsBundle triggers always and awaits an Action Name.

Controller of Type \Zend\Mvc\Controller\AbstractRestfulController don't have an action name.

Therefore it now checks first if there is an Action name (like the Module name check) and sets it afterwards.

This is just to fix the InvalidArgumentException, it would be still nice to have some way of disabling the AssetsBundle on certain calls.