开发者

Symfony multiple filter handlers

开发者 https://www.devze.com 2023-01-21 04:39 出处:网络
I want to know if it is possible to add multiple handlers for the same filter. For my case I use sfGuardPlugins remember me filter, but I would like to use the remember me filter from sfFacebooConnect

I want to know if it is possible to add multiple handlers for the same filter. For my case I use sfGuardPlugins remember me filter, but I would like to use the remember me filter from sfFacebooConnectPlugin.

Can I make both these filters to work on the remember_me filter, or should I create my own filter handler which 开发者_JAVA百科would treat both cases?


UPDATE:

I take that back. You can just use both filters. What you need change is the logic in your login action. It would need to handle setting the proper cookies for BOTH filters.


You would need to modify the code for one of those filters in order to do it. Since they are both from plugins the best bet is to write your own filter that performs the functions of both of the exiting plugin filters.

0

精彩评论

暂无评论...
验证码 换一张
取 消