New redirect strategy

I change the way the redirect strategy works.
The redirects from authenticate/logout actions are now callbacks.
This way the user can overwrite the default callback and decide **exactly** what to should happen.

ping @Ocramius

closes #479
closes #476
closes #473
closes #469
Thx, yeah should me $routeMatch!


Mvh.
Daniel Strøm


On Wed, Jul 2, 2014 at 4:34 PM, Mark Tudor <notifications@github.com> wrote:

> In src/ZfcUser/Controller/Plugin/ZfcUserRedirect.php:
>
> > +<?php
> > +
> > +namespace ZfcUser\Controller\Plugin;
> > +
> > +use Zend\Http\Response;
> > +use Zend\Mvc\Controller\Plugin\Redirect;
> > +use Zend\Mvc\Exception\DomainException;
> > +use Zend\Mvc\Exception\RuntimeException;
> > +use Zend\Mvc\Router\RouteMatch;
> > +use ZfcUser\Options\ModuleOptions;
> > +use Zend\Mvc\Controller\Plugin\AbstractPlugin;
> > +
> > +class ZfcUserRedirect extends AbstractPlugin
> > +{
> > +    /** @var RouteMatch */
> > +    protected $router;
>
> Should this now be $routeMatch, as referenced on L27? Although having said
> that, L105 still references the router although I'm not sure where this is
> set now?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ZF-Commons/ZfcUser/pull/480/files#r14459854>.
>