public function __construct(TwigViewConfigurationInterface $context) { $this->context = $context; $this->defaults = $context->settings(); $this->templatePaths = $this->defaults['filesystem']; $this->events = $context->events(); parent::__construct($context); $this->configure(); }
/** * Construct a compatible environment for Blade template rendering by * connecting to COGS resources and the illuminate/container/container. * * @param BladeConfigurationSet|BladeViewConfigurationInterface|Scope $context */ public function __construct(BladeViewConfigurationInterface $context) { $this->context = $context; parent::__construct($context); $this->configure($context); }
/** * MarkdownView constructor. * * @param array $settings */ public function __construct($settings = []) { $settings = $settings ?: config('view.markdown.defaults'); $this->configure($settings); parent::__construct($settings); }