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


PHP Factory::__construct方法代码示例

本文整理汇总了PHP中Illuminate\View\Factory::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Factory::__construct方法的具体用法?PHP Factory::__construct怎么用?PHP Factory::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Illuminate\View\Factory的用法示例。


在下文中一共展示了Factory::__construct方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Create a new Blade Factory instance
  *
  * @param array $view_paths
  * @param mixed $view_cache_path
  */
 public function __construct(array $view_paths, $view_cache_path = null)
 {
     $resolver = new EngineResolver();
     $finder = new FileViewFinder(new Filesystem(), $view_paths);
     $dispatcher = new Dispatcher();
     $resolver->register("blade", function () use($view_cache_path) {
         if (!is_dir($view_cache_path)) {
             mkdir($view_cache_path, 0777, true);
         }
         $blade = new BladeCompiler(new Filesystem(), $view_cache_path);
         return new CompilerEngine($blade);
     });
     parent::__construct($resolver, $finder, $dispatcher);
 }
开发者ID:rakit,项目名称:blade,代码行数:20,代码来源:Blade.php

示例2: __construct

 /**
  * @param EngineResolver      $engines
  * @param ViewFinderInterface $finder
  * @param DispatcherContract  $events
  * @param Smarty              $smarty
  * @param ConfigContract      $config
  */
 public function __construct(EngineResolver $engines, ViewFinderInterface $finder, DispatcherContract $events, Smarty $smarty, ConfigContract $config)
 {
     parent::__construct($engines, $finder, $events);
     $this->smarty = $smarty;
     $this->config = $config;
 }
开发者ID:noikiy,项目名称:Laravel.Smarty,代码行数:13,代码来源:SmartyFactory.php

示例3: __construct

 /**
  * Create a new view factory instance.
  *
  * @param  \Illuminate\View\Compilers\EngineResolver  $engines
  * @param  \Illuminate\View\ViewFinderInterface  $finder
  * @param  \Illuminate\Events\Dispatcher  $events
  * @return void
  */
 public function __construct(EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events, Shortcode $shortcode)
 {
     parent::__construct($engines, $finder, $events);
     $this->shortcode = $shortcode;
 }
开发者ID:gornymedia,项目名称:laravel-shortcodes,代码行数:13,代码来源:Factory.php

示例4: __construct

 /**
  * Create a new view environment instance.
  *
  * @param  \Illuminate\View\Engines\EngineResolver  $engines
  * @param  \Illuminate\View\ViewFinderInterface  $finder
  * @param  \Illuminate\Events\Dispatcher  $events
  * @return void
  */
 public function __construct(EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events)
 {
     // Call the parent constructor
     parent::__construct($engines, $finder, $events);
 }
开发者ID:d-lamers,项目名称:l4-layoutview,代码行数:13,代码来源:LayoutView.php

示例5: __construct

 /**
  * @param string $fallbackTheme
  * @param EngineResolver $engines
  * @param ViewFinderInterface $finder
  * @param Dispatcher $events
  */
 public function __construct($fallbackTheme, EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events)
 {
     $this->setFallbackTheme($fallbackTheme);
     parent::__construct($engines, $finder, $events);
 }
开发者ID:brenelz,项目名称:laravel-childthemes,代码行数:11,代码来源:ThemeViewFactory.php

示例6: __construct

 /**
  * @param EngineResolver $engines
  * @param ViewFinderInterface $finder
  * @param Dispatcher $events
  * @param \Smarty $smarty
  */
 public function __construct(EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events, \Smarty $smarty)
 {
     parent::__construct($engines, $finder, $events);
     $this->smarty = $smarty;
     $this->setConfigure();
 }
开发者ID:ytake,项目名称:laravel-smarty,代码行数:12,代码来源:SmartyManager.php

示例7: __construct

 /**
  * @param EngineResolver $engines
  * @param ViewFinderInterface $finder
  * @param DispatcherContract $events
  * @param ConfigContract $config
  * @param XSLTSimple $XSLTSimple
  */
 public function __construct(EngineResolver $engines, ViewFinderInterface $finder, DispatcherContract $events, ConfigContract $config, XSLTSimple $XSLTSimple)
 {
     parent::__construct($engines, $finder, $events);
     $this->XSLTSimple = $XSLTSimple;
 }
开发者ID:gulios,项目名称:xsl-laravel-template-engine,代码行数:12,代码来源:XSLTFactory.php

示例8: __construct

 public function __construct(EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events, Translator $translator)
 {
     parent::__construct($engines, $finder, $events);
     $this->translator = $translator;
 }
开发者ID:SerdarSanri,项目名称:simplemessage,代码行数:5,代码来源:Factory.php

示例9: __construct

 /**
  * @param EngineResolver $engines
  * @param ViewFinderInterface $finder
  * @param Dispatcher $events
  * @param ExtendedSimpleXMLElement $extendedSimpleXMLElement
  */
 public function __construct(EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events, ExtendedSimpleXMLElement $extendedSimpleXMLElement)
 {
     parent::__construct($engines, $finder, $events);
     $this->extendedSimpleXMLElement = $extendedSimpleXMLElement;
 }
开发者ID:krowinski,项目名称:laravel-xslt,代码行数:11,代码来源:XSLTFactory.php

示例10: __construct

 /**
  * Create a new view factory instance.
  *
  * @param  \Illuminate\View\Engines\EngineResolver  $engines
  * @param  \Illuminate\View\ViewFinderInterface  $finder
  * @param  \Illuminate\Events\Dispatcher  $events
  * @param  \Robbo\Presenter\Decorator  $decorator
  * @return void
  */
 public function __construct(EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events, Decorator $decorator)
 {
     $this->presenterDecorator = $decorator;
     parent::__construct($engines, $finder, $events);
 }
开发者ID:robclancy,项目名称:presenter,代码行数:14,代码来源:Factory.php


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