Skip to content

Instantly share code, notes, and snippets.

@mneuhaus
Last active December 23, 2015 19:39
Show Gist options
  • Save mneuhaus/6684550 to your computer and use it in GitHub Desktop.
Save mneuhaus/6684550 to your computer and use it in GitHub Desktop.
<?php
/**
* @Flow\Inject
* @var \TYPO3\Flow\Mvc\Routing\Router
*/
protected $router;
function getRoute($request) {
$this->router->route($request->getHttpRequest());
$route = $this->router->getLastMatchedRoute();
var_dump($route->getUriPattern());
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment