/** * Get a LdapObjectCreator object. * * @param string|null $type * @return LdapObjectCreator */ public function createLdapObject($type = null) { $creator = new LdapObjectCreator($this->getConnection(), $this->getSchemaFactory(), $this->config->getEventDispatcher()); if ($type) { $creator->create($type); } return $creator; }