當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。