Move remember me ResponseListener from security bundle into security component

This move allows to implement the remember me feature in Silex without having to reference the security bundle.
This commit is contained in:
DerManoMann 2012-08-30 11:15:49 +12:00
parent ecab04c38d
commit cf4189bdaf
2 changed files with 2 additions and 3 deletions

View File

@ -13,7 +13,7 @@
<parameter key="security.authentication.rememberme.services.persistent.class">Symfony\Component\Security\Http\RememberMe\PersistentTokenBasedRememberMeServices</parameter>
<parameter key="security.authentication.rememberme.services.simplehash.class">Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices</parameter>
<parameter key="security.rememberme.response_listener.class">Symfony\Bundle\SecurityBundle\EventListener\ResponseListener</parameter>
<parameter key="security.rememberme.response_listener.class">Symfony\Component\Security\Http\RememberMe\ResponseListener</parameter>
</parameters>
<services>

View File

@ -9,11 +9,10 @@
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\SecurityBundle\EventListener;
namespace Symfony\Component\Security\Http\RememberMe;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface;
/**
* Adds remember-me cookies to the Response.