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