Commits

lyrixx committed ce9a7c9

Check for autoload elsewhere in case Sismo is a dependency (web part)

  • Participants
  • Parent commits 3fc09d0

Comments (0)

Files changed (1)

 <?php
 
-require_once __DIR__.'/../vendor/autoload.php';
+if (is_file(__DIR__.'/../vendor/autoload.php')) {
+    require_once __DIR__.'/../vendor/autoload.php';
+} else if (is_file(__DIR__.'/../../../autoload.php')) {
+    require_once __DIR__.'/../../../autoload.php';
+}
+
 $app = require __DIR__.'/../src/app.php';
 require __DIR__.'/../src/controllers.php';
 $app->run();