File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,26 @@ public function getStaticDirectory()
45
45
*/
46
46
public function getApplication ()
47
47
{
48
+
49
+
50
+
48
51
// include applications autoload
49
52
$ appAutoLoader = './app/autoload.php ' ;
50
53
if (file_exists ($ appAutoLoader )) {
51
54
require $ appAutoLoader ;
52
- } else {
55
+ $ app = new \AppKernel ($ this ->appenv , $ this ->debug );
56
+ } elseif (file_exists ('./vendor/autoload.php ' )) {
53
57
require './vendor/autoload.php ' ;
58
+ $ app = new \AppKernel ($ this ->appenv , $ this ->debug );
59
+ } else {
60
+ $ loader = require_once __DIR__ .'./app/bootstrap.php.cache ' ;
61
+ require_once __DIR__ .'/../app/AppKernel.php ' ;
62
+ $ kernel = new AppKernel ('prod ' , false );
63
+
54
64
}
55
65
56
66
//since we need to change some services, we need to manually change some services
57
- $ app = new \ AppKernel ( $ this -> appenv , $ this -> debug );
67
+
58
68
59
69
//we need to change some services, before the boot, because they would otherwise
60
70
//be instantiated and passed to other classes which makes it impossible to replace them.
You can’t perform that action at this time.
0 commit comments