Skip to content

Commit

Permalink
Merge 5dbdeb0 into 6093c6d
Browse files Browse the repository at this point in the history
  • Loading branch information
rorteg committed Mar 12, 2019
2 parents 6093c6d + 5dbdeb0 commit dd5d6e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app/code/Shelf/Framework/App/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ class Http implements AppInterface

/**
* Http constructor.
* @param $routeConfig
* @param ServiceManager $serviceManager
*/
public function __construct(
ServiceManager $serviceManager,
$routeConfig
ServiceManager $serviceManager
) {
$this->routeConfig = $routeConfig;
$this->routeConfig = $serviceManager->get('config')['routes'];
$this->serviceManager = $serviceManager;

/** @var ApplicationStrategy $strategy */
Expand Down
2 changes: 1 addition & 1 deletion pub/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
}

$bootstrap = \Shelf\Framework\App\Bootstrap::create($serviceManager, BP);
$application = $bootstrap->createApplication(Http::class, $bootstrap->getRoutes());
$application = $bootstrap->createApplication(Http::class);
$bootstrap->run($application);

0 comments on commit dd5d6e4

Please sign in to comment.