本文整理匯總了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);
}