public function onDeliveryCreated(DeliveryCreatedEvent $event)
    {
        $delivery = $this->getResource($event->getDeliveryUri());

        $proctoredByDefault = $this->isProctoredByDefault();

        $delivery->editPropertyValues($this->getProperty(ProctorService::ACCESSIBLE_PROCTOR), (
        $proctoredByDefault ? ProctorService::ACCESSIBLE_PROCTOR_ENABLED : ProctorService::ACCESSIBLE_PROCTOR_DISABLED
        ));
    }
public function onDeliveryCreated(DeliveryCreatedEvent $event)
    {
        $delivery = $this->getResource($event->getDeliveryUri());

        $proctoredByDefault = $this->isProctoredByDefault();

        $delivery->editPropertyValues($this->getProperty(ProctorService::ACCESSIBLE_PROCTOR), (
        $proctoredByDefault ? ProctorService::ACCESSIBLE_PROCTOR_ENABLED : ProctorService::ACCESSIBLE_PROCTOR_DISABLED
        ));
    }
public function onDeliveryCreated ( DeliveryCreatedEvent $ event ) { $ delivery = $ this -> getResource ( $ event -> getDeliveryUri ( ) ) ; $ proctoredByDefault = $ this -> isProctoredByDefault ( ) ; $ delivery -> editPropertyValues ( $ this -> getProperty ( ProctorService :: ACCESSIBLE_PROCTOR ) , ( $ proctoredByDefault ? ProctorService :: ACCESSIBLE_PROCTOR_ENABLED : ProctorService :: ACCESSIBLE_PROCTOR_DISABLED ) ) ; }
Listen create event for delivery
@param DeliveryCreatedEvent $event
Listen create event for delivery