kskaradzinski
kskaradzinski

Reputation: 5084

How to test route in symfony2

In Kohana You can test routes like this

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

and how can I test routes in symfony2.

Upvotes: 3

Views: 2794

Answers (1)

Sergey Bleih
Sergey Bleih

Reputation: 225

Did you try console commands ? Take a look at the documentation page documentation page

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

Upvotes: 7

Related Questions