diff --git a/bin/console.php b/bin/console.php index 7516d8ae9..fa6cda62f 100644 --- a/bin/console.php +++ b/bin/console.php @@ -8,9 +8,7 @@ exit (1); } -require_once __DIR__ . '/../vendor/autoload.php'; - -$container = \App\Startup::boostrap()->getContainer(); +$container = (require __DIR__ . '/../config/bootstrap.php')->ge; $commands = (array)$container->get(Configuration::class)->get('commands'); $application = new Application(); diff --git a/config/phinx.php b/config/phinx.php index d9154d385..95cb013b4 100644 --- a/config/phinx.php +++ b/config/phinx.php @@ -1,9 +1,8 @@ getContainer(); $pdo = $container->get(PDO::class); diff --git a/public/index.php b/public/index.php index cda2dafb6..8d78c0900 100644 --- a/public/index.php +++ b/public/index.php @@ -1,7 +1,3 @@ run(); +(require __DIR__ . '/../config/bootstrap.php')->run(); diff --git a/src/Startup.php b/src/Startup.php deleted file mode 100644 index d69c818d1..000000000 --- a/src/Startup.php +++ /dev/null @@ -1,24 +0,0 @@ -app = Startup::boostrap(); + $this->app = require __DIR__ . '/../../config/bootstrap.php'; $this->container = $this->app->getContainer(); }