public function __construct(array $parsers = array()) { foreach ($parsers as $mediaType => $parser) { $this->addParser($mediaType, $parser); } }