将其设置为false,并使用Symfony本身的"Symfony\Component\Routing\ annotation \Route“注释。Set it to false and use the "%s" annotation from Symfony itself.', \Symfony\Component\Routing\A
我使用的是独立的Symfony路由组件,即不使用Symfony框架。这是我玩的赤裸裸的代码:$router = new Symfony\Component\Routing\RouteCollection();
$router->add('name', new Symfony\Component\Routing\Route(/*uri*/