Skip to content

Commit

Permalink
Rename Application to Startup
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Sep 15, 2019
1 parent 3671ced commit fb8b46c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions bin/parse-twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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'];
Expand Down
4 changes: 2 additions & 2 deletions bin/schema-sql.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

use App\Application;
use App\Startup;

require_once __DIR__ . '/../vendor/autoload.php';

$app = Application::boostrap();
$app = Startup::boostrap();

$pdo = $app->getContainer()->get(PDO::class);

Expand Down
4 changes: 2 additions & 2 deletions config/phinx.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

use App\Application;
use App\Startup;
use App\Utility\Configuration;

$app = Application::boostrap();
$app = Startup::boostrap();

$container = $app->getContainer();
$pdo = $container->get(PDO::class);
Expand Down
4 changes: 2 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use App\Application;
use App\Startup;

require_once __DIR__ . '/../vendor/autoload.php';

Application::boostrap()->run();
Startup::boostrap()->run();
2 changes: 1 addition & 1 deletion src/Application.php → src/Startup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/ContainerTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Test\TestCase;

use App\Application;
use App\Startup;
use League\Container\Container;
use Psr\Container\ContainerInterface;
use RuntimeException;
Expand All @@ -26,7 +26,7 @@ trait ContainerTestTrait
*/
protected function bootApp(): void
{
$this->app = Application::boostrap();
$this->app = Startup::boostrap();
$this->container = $this->app->getContainer();
}

Expand Down

0 comments on commit fb8b46c

Please sign in to comment.