Skip to content

Commit

Permalink
[Core] Support for middleware in controller and extract a request exe…
Browse files Browse the repository at this point in the history
…cution - fixed for php 5.6.
  • Loading branch information
piotrooo committed Jul 12, 2018
1 parent 306cb25 commit ac4bcc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Ouzo/Core/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class Bootstrap
public function __construct(EnvironmentSetter $environmentSetter = null)
{
error_reporting(E_ALL);
($environmentSetter ?: new EnvironmentSetter('prod'))->set();
$environmentSetter = $environmentSetter ?: new EnvironmentSetter('prod');
$environmentSetter->set();
}

/**
Expand Down

0 comments on commit ac4bcc2

Please sign in to comment.