Skip to content

Commit

Permalink
Updated argument passed to newInstanceArgs to array
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljennings committed Sep 21, 2015
1 parent ea41096 commit eb6e631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CoreServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function register()
$config = config('coreplex');

$this->app->singleton('Coreplex\Core\Contracts\Renderer', function ($app) use ($config) {
return (new ReflectionClass($config['renderer']['driver']))->newInstanceArgs($app['view']);
return (new ReflectionClass($config['renderer']['driver']))->newInstanceArgs([$app['view']]);
});

$this->app->singleton('Coreplex\Core\Contracts\Session', function ($app) use ($config) {
Expand Down

0 comments on commit eb6e631

Please sign in to comment.