コード例 #1
0
 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
0
 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
0
 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
0
 public function __construct($files, $cachePath)
 {
     parent::__construct($files, $cachePath);
     $this->compilers[] = 'Minify';
 }
コード例 #5
0
 public function __construct(Filesystem $files, Application $app)
 {
     parent::__construct($files, $app['config']['view.compiled']);
     $this->addAssetExtension($app);
 }
コード例 #6
0
 /**
  * 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
0
 /**
  * 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
0
ファイル: MinifyCompiler.php プロジェクト: HEDQ-GIT/eshop
 /**
  * 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
0
 /**
  * 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);
 }