src/LdapTools/Object/LdapObjectCreator.php
protected function triggerAfterCreationEvent(AddOperation $operation)
    {
        $event = new LdapObjectCreationEvent(Event::LDAP_OBJECT_AFTER_CREATE, $this->schema ? $this->schema->getObjectType() : null);
        $event->setData((new ParameterResolver($this->attributes, $this->hydrator->getParameters()))->resolve());
        $event->setContainer($operation->getLocation());
        $event->setDn($operation->getDn());

        $this->dispatcher->dispatch($event);
    }
protected function triggerAfterCreationEvent(AddOperation $operation)
    {
        $event = new LdapObjectCreationEvent(Event::LDAP_OBJECT_AFTER_CREATE, $this->schema ? $this->schema->getObjectType() : null);
        $event->setData((new ParameterResolver($this->attributes, $this->hydrator->getParameters()))->resolve());
        $event->setContainer($operation->getLocation());
        $event->setDn($operation->getDn());

        $this->dispatcher->dispatch($event);
    }
protected function triggerAfterCreationEvent ( AddOperation $ operation ) { $ event = new LdapObjectCreationEvent ( Event :: LDAP_OBJECT_AFTER_CREATE , $ this -> schema ? $ this -> schema -> getObjectType ( ) : null ) ; $ event -> setData ( ( new ParameterResolver ( $ this -> attributes , $ this -> hydrator -> getParameters ( ) ) ) -> resolve ( ) ) ; $ event -> setContainer ( $ operation -> getLocation ( ) ) ; $ event -> setDn ( $ operation -> getDn ( ) ) ; $ this -> dispatcher -> dispatch ( $ event ) ; }
Trigger a LDAP object after creation event.

@param AddOperation $operation
Trigger a LDAP object after creation event .