Skip to content

Commit 0cbb201

Browse files
authored
Merge pull request #42 from daper/patch-2
Fixed call to static App
2 parents 24a6c02 + 80385a0 commit 0cbb201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Intouch/LaravelNewrelic/LumenNewrelicMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function getRouteObject() {
9191
};
9292

9393
$routes = [];
94-
foreach (\App::getRoutes() as $routeName => $route) {
94+
foreach (app()->getRoutes() as $routeName => $route) {
9595
$regex = $routeToRegex($routeName);
9696
$method = $routeToMethod($routeName);
9797
$routes[$method.$regex] = compact('route', 'method', 'regex');

0 commit comments

Comments
 (0)