本文整理汇总了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);
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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();
}
示例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;
}
示例8: __construct
public function __construct(EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events, Translator $translator)
{
parent::__construct($engines, $finder, $events);
$this->translator = $translator;
}
示例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;
}
示例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);
}