Browse Source

setup route fix

develop
Robin Thoni 8 years ago
parent
commit
886d353273
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      src/Utils/Controller/LuticateApplication.php

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

73
     
73
     
74
     public function setupRoutes()
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
         $this->_router->setup();
79
         $this->_router->setup();
82
     }
80
     }

Loading…
Cancel
Save