ZF-Commons/ZfcUser — pull request #328 by Spalax (2013-07-12 09:40:57+00:00)
Title: Moved ROUTE constants to the ModuleOptions.

I propose this fix because, i met a problem when my controllers has only on responsibilities and i want to extend a UserController. On example:

```php
namespace Front\Controllers\Admin\User;

use Zend\Mvc\MvcEvent;
use Zend\View\Model\ViewModel;
use ZfcUser\Controller\UserController;

class LoginController extends UserController
{
/* (non-PHPdoc)
* @see Zend\Mvc\Controller.AbstractActionController::onDispatch()
*/
public function onDispatch(MvcEvent $e)
{
$result = $this->loginAction();
$viewModel = new ViewModel();
$viewModel->setVariables($result);
$viewModel->setTemplate('scripts/user/login');
$e->setResult($viewModel);
}
}
```
So in this case i am unable to extend UserController and overload only loginAction without copying it. Or another hacks. So my solution inside this commit, hope it is might be useful for people who split controllers according to SRP.