diff --git a/src/Resource/Http/web.php.stub b/src/Resource/Http/web.php.stub index 042e90e..13084bc 100644 --- a/src/Resource/Http/web.php.stub +++ b/src/Resource/Http/web.php.stub @@ -5,11 +5,12 @@ declare(strict_types=1); use Psr\Container\ContainerInterface; use Psr\Http\Message\ServerRequestInterface; use Viserio\Component\Http\Response\HtmlResponse; +use Viserio\Contract\View\Factory as ViewFactoryContract; /** @var \Viserio\Component\Routing\Router $router */ $router->get('/', function (ServerRequestInterface $request, ContainerInterface $container) { - $view = $container->get('view'); + $view = $container->get(ViewFactoryContract::class); return new HtmlResponse((string) $view->create('welcome', ['lang' => 'en'])); });