本文整理汇总了PHP中Illuminate\View\Compilers\BladeCompiler::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP BladeCompiler::__construct方法的具体用法?PHP BladeCompiler::__construct怎么用?PHP BladeCompiler::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\View\Compilers\BladeCompiler
的用法示例。
在下文中一共展示了BladeCompiler::__construct方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
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;
}
示例2: __construct
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;
}
示例3: __construct
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]);
}
示例4: __construct
public function __construct($files, $cachePath)
{
parent::__construct($files, $cachePath);
$this->compilers[] = 'Minify';
}
示例5: __construct
public function __construct(Filesystem $files, Application $app)
{
parent::__construct($files, $app['config']['view.compiled']);
$this->addAssetExtension($app);
}
示例6: __construct
/**
* 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);
}
示例7: __construct
/**
* 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);
}
示例8: __construct
/**
* 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';
}
示例9: __construct
/**
* 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);
}