mimeLiteralPartFactory = $mimeLiteralPartFactory; parent::__construct($consumerService, $name, $value); } /** * Mime-decodes any mime-encoded parts prior to invoking the passed * consumer. * * @return static */ protected function setParseHeaderValue(AbstractConsumer $consumer) { $value = $this->rawValue; $matchp = '~'.MimeLiteralPart::MIME_PART_PATTERN.'~'; $value = \preg_replace_callback($matchp, function ($matches) { return $this->mimeLiteralPartFactory->newInstance($matches[0]); }, $value); $this->parts = $consumer($value); return $this; } }