Skip to content

Instantly share code, notes, and snippets.

@chriscalip
Created September 21, 2017 02:54
Show Gist options
  • Save chriscalip/b4c59cc4a45797c0cc77d4a47012a8a3 to your computer and use it in GitHub Desktop.
Save chriscalip/b4c59cc4a45797c0cc77d4a47012a8a3 to your computer and use it in GitHub Desktop.
chriscalip@raptor:~/projects/codes/lumen-5.5.0$ grep -R getRoutes *
vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php: if (isset($this->router->getRoutes()[$method.$pathInfo])) {
vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php: return $this->handleFoundRoute([true, $this->router->getRoutes()[$method.$pathInfo]['action'], []]);
vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php: foreach ($this->router->getRoutes() as $route) {
vendor/laravel/lumen-framework/src/Routing/Router.php: public function getRoutes()
chriscalip@raptor:~/projects/codes/lumen-5.3.0$ grep -R getRoutes *
vendor/laravel/lumen-framework/tests/FullApplicationTest.php: $route = $app->getRoutes()['GET/test'];
vendor/laravel/lumen-framework/tests/FullApplicationTest.php: $routes = $app->getRoutes();
vendor/laravel/lumen-framework/tests/FullApplicationTest.php: $routes = $app->getRoutes();
vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php: public function getRoutes()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment