我正在尝试使用 JWT 和 PHP 进行一些实验,但我无法使 LexikJWTAuthenticationBundle 工作。
我使用 composer 创建了一个 Symfony 项目composer create-project symfony/skeleton my_project
并使用 Symfony Flex 安装 LexikJWTAuthenticationBundlecomposer req jwt-auth
然后我按照 Github 中的项目入门(https://github.com/lexik/LexikJWTAuthenticationBundle/blob/master/Resources/doc/index.md#getting-开始)但是当我尝试运行应用程序时,我收到了这个错误消息:
[Symfony\Component\Config\Exception\FileLoaderLoadException]
There is no extension able to load the configuration for "api_login_check" (in /home/alan/Desktop/auth/config/packages/routing.yaml). Looked for namespace "api_login_check", found "framework", "security", "lexik_jwt_authentication" in /home/alan/Desktop/auth/config/packages/routing.yaml (which is loaded in resource "/home/alan/Desktop/auth/config/packages/routing.yaml").
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
There is no extension able to load the configuration for "api_login_check" (in /home/alan/Desktop/auth/config/packages/routing.yaml). Looked for namespace "api_login_check", found "framework", "security", "lexik_jwt_authentication"
我在 github 中创建了一个存储库,其中的代码出现错误 https://github.com/alanoliveira/jwt_auth_test
有人可以给我一些提示我做错了什么吗?