public function __construct(LdapConnectionInterface $connection, EventDispatcherInterface $dispatcher) { $this->connection = $connection; $this->dispatcher = $dispatcher; $cache = CacheFactory::get(CacheFactory::TYPE_NONE, []); $parser = SchemaParserFactory::get(SchemaParserFactory::TYPE_YML, self::SCHEMA_DIR); $this->schemaFactory = new LdapObjectSchemaFactory($cache, $parser, $dispatcher); }