"sensio/framework-extra-bundle": "^5.0" is a pretty high requirement which makes this extension incompatible with other extensions that still might only require "sensio/framework-extra-bundle": "^3.0" for example.
Since you only need the @Route annotation anyway, it's better to use Symfony's own symfony/routing package, which includes a @Route annotation. This package is also used by Contao 4.4 and later.
"sensio/framework-extra-bundle": "^5.0"
is a pretty high requirement which makes this extension incompatible with other extensions that still might only require"sensio/framework-extra-bundle": "^3.0"
for example.Since you only need the
@Route
annotation anyway, it's better to use Symfony's ownsymfony/routing
package, which includes a@Route
annotation. This package is also used by Contao 4.4 and later.