src/LdapTools/Object/LdapObjectCreator.php
protected function triggerBeforeCreationEvent()
    {
        $event = new LdapObjectCreationEvent(Event::LDAP_OBJECT_BEFORE_CREATE, $this->schema ? $this->schema->getObjectType() : null);
        $event->setData($this->attributes);
        $event->setContainer($this->container);
        $event->setDn($this->dn);

        $this->dispatcher->dispatch($event);

        $this->attributes = $event->getData();
        $this->container = $event->getContainer();
        $this->dn = $event->getDn();
    }
protected function triggerBeforeCreationEvent()
    {
        $event = new LdapObjectCreationEvent(Event::LDAP_OBJECT_BEFORE_CREATE, $this->schema ? $this->schema->getObjectType() : null);
        $event->setData($this->attributes);
        $event->setContainer($this->container);
        $event->setDn($this->dn);

        $this->dispatcher->dispatch($event);

        $this->attributes = $event->getData();
        $this->container = $event->getContainer();
        $this->dn = $event->getDn();
    }
protected function triggerBeforeCreationEvent ( ) { $ event = new LdapObjectCreationEvent ( Event :: LDAP_OBJECT_BEFORE_CREATE , $ this -> schema ? $ this -> schema -> getObjectType ( ) : null ) ; $ event -> setData ( $ this -> attributes ) ; $ event -> setContainer ( $ this -> container ) ; $ event -> setDn ( $ this -> dn ) ; $ this -> dispatcher -> dispatch ( $ event ) ; $ this -> attributes = $ event -> getData ( ) ; $ this -> container = $ event -> getContainer ( ) ; $ this -> dn = $ event -> getDn ( ) ; }
Trigger a LDAP object before creation event.
Trigger a LDAP object before creation event .