Bläddra i källkod

setup route fix

develop
Robin Thoni 8 år sedan
förälder
incheckning
886d353273
1 ändrade filer med 2 tillägg och 4 borttagningar
  1. 2
    4
      src/Utils/Controller/LuticateApplication.php

+ 2
- 4
src/Utils/Controller/LuticateApplication.php Visa fil

@@ -73,10 +73,8 @@ class LuticateApplication implements MessageComponentInterface
73 73
     
74 74
     public function setupRoutes()
75 75
     {
76
-        function($app)
77
-        {
78
-            require_once __DIR__ . '/../../../../../../app/routes.php';
79
-        }($this);
76
+        $app = $this;
77
+        require_once __DIR__ . '/../../../../../../app/routes.php';
80 78
         
81 79
         $this->_router->setup();
82 80
     }

Laddar…
Avbryt
Spara