Symfony 2 SecurityContext class deprecated

前端 未结 3 1504
醉梦人生
醉梦人生 2021-02-02 09:12

I get the following error when I try to reach app/example on symfony demo

Error: The Symfony\\Component\\Security\\Core\\SecurityContext class is deprec

3条回答
  •  生来不讨喜
    2021-02-02 09:34

    It's not a proper error, just a warning.

    A deprecated class is a class that is planned to be removed in future releases (of Symfony, in this case).

    It suggest you to stop using it, and points you to the newer (and substitutes) class, TokenStorage and AuthorizationChecker, that will take completly over to do the same tasks.

提交回复
热议问题