public function deliveryAuthorized(AuthorizationGranted $event)
    {
        $deliveryExecution = $event->getDeliveryExecution();
        $data = $this->createMonitoringData($deliveryExecution);

        $data->update(DeliveryMonitoringService::AUTHORIZED_BY, $event->getAuthorizer()->getIdentifier());
        if (!$this->partialSave($data)) {
            \common_Logger::w('monitor cache for authorization could not be updated');
        }
    }
public function deliveryAuthorized(AuthorizationGranted $event)
    {
        $deliveryExecution = $event->getDeliveryExecution();
        $data = $this->createMonitoringData($deliveryExecution);

        $data->update(DeliveryMonitoringService::AUTHORIZED_BY, $event->getAuthorizer()->getIdentifier());
        if (!$this->partialSave($data)) {
            \common_Logger::w('monitor cache for authorization could not be updated');
        }
    }
public function deliveryAuthorized ( AuthorizationGranted $ event ) { $ deliveryExecution = $ event -> getDeliveryExecution ( ) ; $ data = $ this -> createMonitoringData ( $ deliveryExecution ) ; $ data -> update ( DeliveryMonitoringService :: AUTHORIZED_BY , $ event -> getAuthorizer ( ) -> getIdentifier ( ) ) ; if ( ! $ this -> partialSave ( $ data ) ) { \ common_Logger :: w ( 'monitor cache for authorization could not be updated' ) ; } }
Sets the protor who authorized this delivery execution

@param AuthorizationGranted $event
@throws \common_exception_NotFound
Sets the protor who authorized this delivery execution