diff --git a/src/CoreServiceProvider.php b/src/CoreServiceProvider.php index 3eed143..95ae057 100644 --- a/src/CoreServiceProvider.php +++ b/src/CoreServiceProvider.php @@ -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) {