当前位置: 首页>>代码示例>>PHP>>正文


PHP BladeCompiler::__construct方法代码示例

本文整理汇总了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;
 }
开发者ID:Geekathon,项目名称:laravel-db-blade-compiler,代码行数:11,代码来源:DbBladeCompiler.php

示例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;
 }
开发者ID:digivo,项目名称:laravel-string-blade-compiler,代码行数:12,代码来源:StringBladeCompiler.php

示例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]);
 }
开发者ID:jaymondigo,项目名称:custommade,代码行数:12,代码来源:LaravelHtmlMinifyCompiler.php

示例4: __construct

 public function __construct($files, $cachePath)
 {
     parent::__construct($files, $cachePath);
     $this->compilers[] = 'Minify';
 }
开发者ID:h0akd,项目名称:htmlminify,代码行数:5,代码来源:HtmlMinifyCompiler.php

示例5: __construct

 public function __construct(Filesystem $files, Application $app)
 {
     parent::__construct($files, $app['config']['view.compiled']);
     $this->addAssetExtension($app);
 }
开发者ID:KinaMarie,项目名称:laravel-5-base-app-support,代码行数:5,代码来源:BladeCompiler.php

示例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);
 }
开发者ID:bkwld,项目名称:laravel-pug,代码行数:13,代码来源:PugBladeCompiler.php

示例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);
 }
开发者ID:trupedia,项目名称:laravel-blade-haml,代码行数:13,代码来源:HamlCompiler.php

示例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';
 }
开发者ID:HEDQ-GIT,项目名称:eshop,代码行数:15,代码来源:MinifyCompiler.php

示例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);
 }
开发者ID:delatbabel,项目名称:viewpages,代码行数:12,代码来源:BladeCompiler.php


注:本文中的Illuminate\View\Compilers\BladeCompiler::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。