Authentication token always null in kernel.request event in Symfony 2?

前端 未结 1 337
庸人自扰
庸人自扰 2021-01-12 00:40

I\'m tring to write a basic listener for kernel.request event in Symfony 2. Service definition is pretty simple and annotations come from JMSDiExtraBundle.

1条回答
  •  死守一世寂寞
    2021-01-12 01:27

    With priority = 255, your listener is called BEFORE the security firewall (priority = 8, look here).

    Try to change your priority.

    0 讨论(0)
提交回复
热议问题