public function __construct(LdapConnectionInterface $connection, LdapObjectSchemaFactory $schemaFactory, EventDispatcherInterface $dispatcher) { $this->hydrator = new OperationHydrator($connection); $this->schemaFactory = $schemaFactory; $this->connection = $connection; $this->dispatcher = $dispatcher; }