symfony - symfony2 override the service security.authentication.manager -


i add code inside function authenticate() of symfony\component\security\core\authentication\authenticationprovidermanager.

i tried create child bundle of security bundle. , redefined service security.authentication.manager in bundle that

    <!-- authentication related services -->     <service id="security.authentication.manager" class="%security.authentication.manager.class%" public="false">         <argument type="collection" />     </service> 

but when relad page, framework throw exception: invalidargumentexception: must @ least add 1 authentication provider.

i suppose it's becaue dependecies created inside parent bundle configuation.

what must work without redefine whole security bundle ? thank you.

i suppose better created own handlers.

  1. you need create service
  2. register service container.
  3. simply set handlers in security.yml:
form_login:     success_handler: success_login_handler     failure_handler: failure_login_handler logout:     success_handler: success_logout_handler 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -