如何在symfony2中测试路由

时间:2013-07-24 08:07:26

标签: symfony routing

在Kohana你可以测试这样的路线

$route = Route::get('admin');
echo Kohana_Debug::dump($route->matches('admin/user/edit/10'));

如何在symfony2中测试路由。

1 个答案:

答案 0 :(得分:7)

您是否尝试过控制台命令?请查看文档页面documentation page

php app/console router:debug
php app/console router:debug article_show
php app/console router:match /blog/my-latest-post