是否可以在Silex 2路由中使用RegEx?
我需要做这样的事情:
$this->get('/(adios|goodbay)', function (Request $request) use ($app) { return $app['twig']->render('bye.html.twig', []); })->bind('bye');
php regex routing silex
php ×1
regex ×1
routing ×1
silex ×1