Sfoglia il codice sorgente

setup route fix

develop
Robin Thoni 8 anni fa
parent
commit
886d353273
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2
    4
      src/Utils/Controller/LuticateApplication.php

+ 2
- 4
src/Utils/Controller/LuticateApplication.php Vedi File

@@ -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
     }

Loading…
Annulla
Salva