Skip to content

Commit

Permalink
Try closure bind instead of bindTo
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Oct 9, 2014
1 parent 330d079 commit 9ce581f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ php:
- 5.5
- 5.6
- hhvm
- hhvm-nightly

env:
- PHPUNIT_ARGS=--group=no-deps
Expand Down
2 changes: 1 addition & 1 deletion src/Configurator/HttpKernelDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(HttpKernel $httpKernel, \Closure $configurator)
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true)
{
if (!$this->isConfigured) {
call_user_func($this->configurator->bindTo($this->httpKernel, 'Symfony\Component\HttpKernel\HttpKernel'));
call_user_func(\Closure::bind($this->configurator, $this->httpKernel, 'Symfony\Component\HttpKernel\HttpKernel'));
$this->isConfigured = true;
}

Expand Down

0 comments on commit 9ce581f

Please sign in to comment.