开发者

Symfony multiple filter handlers

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜