0
私はSymfonyアプリケーションで今や神秘的な問題を抱えています。symfonyのルートが見つかりましたが、一致しません
別のルートと競合する新しいルートを作成しました。私は注文を変更しましたが、問題はまだここにありました。
私のルートがある:
# imported and prefixed routing.yml file
my_new_route:
path: /activation-token/{activation-token}
defaults: { _controller: MyUserBundle:User:getLicenseeIdByActivationToken }
methods: [GET]
私はbin/console debug:router
コマンドを起動していたとき、私のルートはまだ登録されています
$ bin/console debug:router --show-controllers | grep my_new_route
my_new_route GET ANY ANY /api/v1/users/activation-token/{activation-token} FfbEasiUserBundle:Users:getLicenseeIdByActivationToken
私はちょうどテストし、その後、競合ルートを除去し、試してみましたbin/console router:match
コマンドを使用して自分のルートの一致を確認します。私は私が私の現在の設定で間違っているのか理解していない認める
$ bin/console router:match --method GET /api/v1/users/activation-token/a
[ERROR] None of the routes match the path "/api/v1/users/activation-token/{application-token}"
:私は次の出力を持っています。
誰かが手がかりを持っている場合は、それを共有してください:D!
編集:私は、キャッシュをクリア;)