public function setContext(Context $context) { parent::setContext($context); $this->repository = $this->getScopeVariable('repository'); $this->configResolver = $this->getScopeVariable('configResolver'); $this->container = $this->getScopeVariable('container'); }
/** * @param null|string $colorMode (default: null) */ public function __construct($colorMode = null) { $this->colorMode = $colorMode ?: Configuration::COLOR_MODE_AUTO; return parent::__construct(); }