public function __construct($filesystem, $cache_path, $config, $app) { // Get Current Blade Instance $blade = $app->make('blade.compiler'); parent::__construct($filesystem, $cache_path); $this->rawTags = $blade->getRawTags(); $this->contentTags = $blade->getContentTags(); $this->escapedTags = $blade->getEscapedContentTags(); $this->extensions = $blade->getExtensions(); $this->config = $config; }
public function __construct($filesystem, $cache_path, $config, $app) { // Get Current Blade Instance $blade = app('view')->getEngineResolver()->resolve('blade')->getCompiler(); parent::__construct($filesystem, $cache_path); $this->rawTags = $blade->getRawTags(); $this->contentTags = $blade->getContentTags(); $this->escapedTags = $blade->getEscapedContentTags(); $this->extensions = $blade->getExtensions(); $this->customDirectives = $blade->getCustomDirectives(); $this->config = $config; }
public function __construct($config, $files, $cachePath) { parent::__construct($files, $cachePath); $this->_config = $config; // Add Minify to the list of compilers if ($this->_config['enabled'] === true) { $this->compilers[] = 'Minify'; } // Set Blade contentTags and escapedContentTags $this->setContentTags($this->_config['blade']['contentTags'][0], $this->_config['blade']['contentTags'][1]); $this->setEscapedContentTags($this->_config['blade']['escapedContentTags'][0], $this->_config['blade']['escapedContentTags'][1]); }
public function __construct($files, $cachePath) { parent::__construct($files, $cachePath); $this->compilers[] = 'Minify'; }
public function __construct(Filesystem $files, Application $app) { parent::__construct($files, $app['config']['view.compiled']); $this->addAssetExtension($app); }
/** * Create a new compiler instance. * * @param Pug $pug * @param \Illuminate\Filesystem\Filesystem $files * @param string $cachePath * @return void */ public function __construct(Pug $pug, Filesystem $files, $cachePath) { $this->pug = $pug; parent::__construct($files, $cachePath); }
/** * Create a new compiler instance. * * @param \MtHaml\Environment $mthaml * @param \Illuminate\Filesystem\Filesystem $files * @param string $cachePath * @return void */ public function __construct(Environment $mthaml, Filesystem $files, $cachePath) { $this->mthaml = $mthaml; parent::__construct($files, $cachePath); }
/** * Create a new instance. * * @param \GrahamCampbell\HTMLMin\Minifiers\BladeMinifier $blade * @param \Illuminate\Filesystem\Filesystem $files * @param string $cachePath * * @return void */ public function __construct(BladeMinifier $blade, Filesystem $files, $cachePath) { parent::__construct($files, $cachePath); $this->blade = $blade; $this->compilers[] = 'Minify'; }
/** * Create a new compiler instance. * * @param Filesystem $files * @param string $cachePath * @param LoaderInterface $loader */ public function __construct(Filesystem $files, $cachePath, LoaderInterface $loader) { $this->loader = $loader; parent::__construct($files, $cachePath); }