Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }
Ejemplo n.º 3
0
 /**
  * MarkdownView constructor.
  *
  * @param array $settings
  */
 public function __construct($settings = [])
 {
     $settings = $settings ?: config('view.markdown.defaults');
     $this->configure($settings);
     parent::__construct($settings);
 }