Example #1
0
 public function match()
 {
     if (!$this->configuration->isCliServer()) {
         return null;
     }
     dump(self::class);
 }
Example #2
0
 public function match()
 {
     if (!$this->configuration->isConsoleMode()) {
         return null;
     }
     dump(self::class);
 }
Example #3
0
 public function __construct(IEventBus $eventBus, ITemplateLoader $templateLoader, IContext $context, Configuration $configuration)
 {
     parent::__construct($eventBus, $templateLoader);
     $this->context = $context;
     $this->configSection = $configuration->getSection(self::class);
 }
Example #4
0
 /**
  * @param Configuration $configuration
  * @param IContext $context
  */
 public function __construct(Configuration $configuration, IContext $context)
 {
     $this->configSection = $configuration->getSection(static::class);
     $this->context = $context;
 }
Example #5
0
 public function __construct(Configuration $configuration)
 {
     $this->setSingleTagList($configuration->getSection(self::class)->get('single-tag-list', []));
 }
Example #6
0
 public function __construct(Configuration $configuration)
 {
     $this->configSection = $configuration->getSection(self::class);
 }