Skip to content

Commit 7072f7c

Browse files
authored
Update DbBladeCompiler.php
getRawTags(), getContentTags(), getEscapedContentTags() methods are no longer in the L5.4 BladeCompiler. Changed to just get the protected values from the class, no longer using the accessor methods. On contentTags, and escapedTags use array_map('stripcslashes'). This matches the functionality in L5.3 BladeCompiler -- (see method getTags() in L5.3 Illuminate\View\Compilers\BladeCompiler).
1 parent 5948efb commit 7072f7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Flynsarmy/DbBladeCompiler/DbBladeCompiler.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public function __construct($filesystem, $cache_path, Repository $config)
1717
$blade = app('view')->getEngineResolver()->resolve('blade')->getCompiler();
1818

1919
parent::__construct($filesystem, $cache_path);
20-
$this->rawTags = $blade->getRawTags();
21-
$this->contentTags = $blade->getContentTags();
22-
$this->escapedTags = $blade->getEscapedContentTags();
20+
$this->rawTags = $blade->rawTags;
21+
$this->contentTags = array_map('stripcslashes', $blade->contentTags);
22+
$this->escapedTags = array_map('stripcslashes', $blade->escapedTags);
2323
$this->extensions = $blade->getExtensions();
2424
$this->customDirectives = $blade->getCustomDirectives();
2525
$this->config = $config;

0 commit comments

Comments
 (0)