Skip to content

Commit

Permalink
Move remember me ResponseListener from security bundle into security …
Browse files Browse the repository at this point in the history
…component

This move allows to implement the remember me feature in Silex without having to reference the security bundle.
  • Loading branch information
DerManoMann committed Aug 29, 2012
1 parent ecab04c commit cf4189b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -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>
Expand Down
Expand Up @@ -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.
Expand Down

0 comments on commit cf4189b

Please sign in to comment.