Skip to content

Commit 37bc2ad

Browse files
alexjoffroywebwizo
authored andcommitted
View - Using engine interface instead of actual implementation in constructor (#33)
1 parent b1c88a5 commit 37bc2ad

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/View/View.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Contracts\Support\Renderable;
55
use Illuminate\View\View as IlluminateView;
66
use Webwizo\Shortcodes\Compilers\ShortcodeCompiler;
7-
use Illuminate\View\Engines\CompilerEngine;
7+
use Illuminate\Contracts\View\Engine as EngineInterface;
88

99
class View extends IlluminateView implements ArrayAccess, Renderable
1010
{
@@ -19,14 +19,14 @@ class View extends IlluminateView implements ArrayAccess, Renderable
1919
/**
2020
* Create a new view instance.
2121
*
22-
* @param \Illuminate\View\Factory|Factory $factory
23-
* @param \Illuminate\View\Compilers\CompilerEngine|CompilerEngine $engine
24-
* @param string $view
25-
* @param string $path
26-
* @param array $data
27-
* @param \Webwizo\Shortcodes\Compilers\ShortcodeCompiler $shortcode
22+
* @param \Illuminate\View\Factory|Factory $factory
23+
* @param \Illuminate\Contracts\View\Engine|EngineInterface $engine
24+
* @param string $view
25+
* @param string $path
26+
* @param array $data
27+
* @param \Webwizo\Shortcodes\Compilers\ShortcodeCompiler $shortcode
2828
*/
29-
public function __construct(Factory $factory, CompilerEngine $engine, $view, $path, $data = [], ShortcodeCompiler $shortcode)
29+
public function __construct(Factory $factory, EngineInterface $engine, $view, $path, $data = [], ShortcodeCompiler $shortcode)
3030
{
3131
parent::__construct($factory, $engine, $view, $path, $data);
3232
$this->shortcode = $shortcode;

0 commit comments

Comments
 (0)