public function __construct(Cache $cache, array $repositories, IMetadataParserFactory $metadataParserFactory = null) { $this->cache = $cache; $this->repositories = $repositories; $this->metadataParserFactory = $metadataParserFactory; }