3
3
use ArrayAccess ;
4
4
use Illuminate \Contracts \Support \Renderable ;
5
5
use Illuminate \View \View as IlluminateView ;
6
- use Illuminate \Contracts \View \Engine as EngineInterface ;
7
6
use Webwizo \Shortcodes \Compilers \ShortcodeCompiler ;
7
+ use Illuminate \View \Engines \CompilerEngine ;
8
8
9
9
class View extends IlluminateView implements ArrayAccess, Renderable
10
10
{
@@ -20,13 +20,13 @@ class View extends IlluminateView implements ArrayAccess, Renderable
20
20
* Create a new view instance.
21
21
*
22
22
* @param \Illuminate\View\Factory|Factory $factory
23
- * @param \Illuminate\Contracts\ View\Engine|EngineInterface $engine
23
+ * @param \Illuminate\View\Compilers\CompilerEngine|CompilerEngine $engine
24
24
* @param string $view
25
25
* @param string $path
26
26
* @param array $data
27
27
* @param \Webwizo\Shortcodes\Compilers\ShortcodeCompiler $shortcode
28
28
*/
29
- public function __construct (Factory $ factory , EngineInterface $ engine , $ view , $ path , $ data = [], ShortcodeCompiler $ shortcode )
29
+ public function __construct (Factory $ factory , CompilerEngine $ engine , $ view , $ path , $ data = [], ShortcodeCompiler $ shortcode )
30
30
{
31
31
parent ::__construct ($ factory , $ engine , $ view , $ path , $ data );
32
32
$ this ->shortcode = $ shortcode ;
@@ -39,8 +39,6 @@ public function withShortcodes()
39
39
{
40
40
$ this ->shortcode ->enable ();
41
41
42
- $ this ->shortcode ->attachData ($ this ->getData ());
43
-
44
42
return $ this ;
45
43
}
46
44
0 commit comments