如何在Symfony2中测试路由

3
在Kohana中,您可以像这样测试路由。
$route = Route::get('admin');
echo Kohana_Debug::dump($route->matches('admin/user/edit/10'));

我该如何在Symfony2中测试路由呢?
1个回答

7

你尝试使用控制台命令了吗?请查看文档页面

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接