Skip to content

Commit

Permalink
Change return type to App
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Aug 25, 2019
1 parent b204a28 commit 0061c0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
// Register routes
(require __DIR__ . '/middleware.php')($app);

return $container;
return $app;
})();
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

(require __DIR__ . '/../config/bootstrap.php')->get(\Slim\App::class)->run();
(require __DIR__ . '/../config/bootstrap.php')->run();
4 changes: 2 additions & 2 deletions tests/TestCase/ContainerTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ trait ContainerTestTrait
*/
protected function bootApp(): void
{
$this->container = require __DIR__ . '/../../config/bootstrap.php';
$this->app = $this->container->get(App::class);
$this->app = require __DIR__ . '/../../config/bootstrap.php';
$this->container = $this->app->getContainer();
}

/**
Expand Down

0 comments on commit 0061c0d

Please sign in to comment.