Last active
August 29, 2015 14:17
-
-
Save toolpixx/d382629f34d1e36935ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$router = $this->get('router'); | |
// You can look what routes defined | |
//dump($router->getRouteCollection()->all()); | |
if (array_key_exists('your_route_name', $router->getRouteCollection()->all())) { | |
...special code... | |
} else { | |
...other code... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment