From fb8b46c28b279a896c1d25e7603da8e2f080e5d3 Mon Sep 17 00:00:00 2001 From: odan Date: Sun, 15 Sep 2019 10:46:09 +0200 Subject: [PATCH] Rename Application to Startup --- bin/parse-twig.php | 4 ++-- bin/schema-sql.php | 4 ++-- config/phinx.php | 4 ++-- public/index.php | 4 ++-- src/{Application.php => Startup.php} | 2 +- tests/TestCase/ContainerTestTrait.php | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) rename src/{Application.php => Startup.php} (93%) diff --git a/bin/parse-twig.php b/bin/parse-twig.php index 2e8ef7594..ff2348d6b 100644 --- a/bin/parse-twig.php +++ b/bin/parse-twig.php @@ -17,7 +17,7 @@ // Translate the text and save the file. // -use App\Application; +use App\Startup; use App\Utility\Configuration; use Odan\Twig\TwigCompiler; use Slim\Psr7\Factory\ServerRequestFactory; @@ -29,7 +29,7 @@ define('APP_ENV', 'integration'); -$app = Application::boostrap(); +$app = Startup::boostrap(); $settings = $app->getContainer()->get(Configuration::class)->get('twig'); $templatePath = (string)$settings['path']; diff --git a/bin/schema-sql.php b/bin/schema-sql.php index d38a59583..1b13ae63d 100644 --- a/bin/schema-sql.php +++ b/bin/schema-sql.php @@ -1,10 +1,10 @@ getContainer()->get(PDO::class); diff --git a/config/phinx.php b/config/phinx.php index f5277f6f3..d9154d385 100644 --- a/config/phinx.php +++ b/config/phinx.php @@ -1,9 +1,9 @@ getContainer(); $pdo = $container->get(PDO::class); diff --git a/public/index.php b/public/index.php index 9c44b77b0..cda2dafb6 100644 --- a/public/index.php +++ b/public/index.php @@ -1,7 +1,7 @@ run(); +Startup::boostrap()->run(); diff --git a/src/Application.php b/src/Startup.php similarity index 93% rename from src/Application.php rename to src/Startup.php index 6fef88287..d69c818d1 100644 --- a/src/Application.php +++ b/src/Startup.php @@ -10,7 +10,7 @@ * This defines the bootstrapping logic and middleware layers you * want to use in your application. */ -final class Application +final class Startup { /** * Boostrap. diff --git a/tests/TestCase/ContainerTestTrait.php b/tests/TestCase/ContainerTestTrait.php index bbf12119a..235cd7809 100644 --- a/tests/TestCase/ContainerTestTrait.php +++ b/tests/TestCase/ContainerTestTrait.php @@ -2,7 +2,7 @@ namespace App\Test\TestCase; -use App\Application; +use App\Startup; use League\Container\Container; use Psr\Container\ContainerInterface; use RuntimeException; @@ -26,7 +26,7 @@ trait ContainerTestTrait */ protected function bootApp(): void { - $this->app = Application::boostrap(); + $this->app = Startup::boostrap(); $this->container = $this->app->getContainer(); }