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