Twigcode を介して CMS からコントローラーにデータをレンダリングしており、コントローラーは twig テンプレートをレンダリングします。現在のルートを取得したいと思います。私はすでに使用しようとしました:
// Controller
$request = $this->container->get('request');
$routeName = $request->get('_route');
// or Twigtemplate
{{ app.request.attributes.get('_route') }}
しかし、結果は「_internal」です。どうすればその問題を解決できますか?