public static function createTask($where = [], $propertyValues = [])
    {
        $serviceManager = ServiceManager::getServiceManager();
        $action = new self();
        $action->setServiceLocator($serviceManager);

        $parameters = [
            self::OPTION_WHERE => $where,
            self::OPTION_PARAMETERS => $propertyValues
        ];
        /** @var QueueDispatcher $queueDispatcher */
        $queueDispatcher = ServiceManager::getServiceManager()->get(QueueDispatcher::SERVICE_ID);
        return $queueDispatcher->createTask($action, $parameters, null, null, true);
    }
public static function createTask($where = [], $propertyValues = [])
    {
        $serviceManager = ServiceManager::getServiceManager();
        $action = new self();
        $action->setServiceLocator($serviceManager);

        $parameters = [
            self::OPTION_WHERE => $where,
            self::OPTION_PARAMETERS => $propertyValues
        ];
        /** @var QueueDispatcher $queueDispatcher */
        $queueDispatcher = ServiceManager::getServiceManager()->get(QueueDispatcher::SERVICE_ID);
        return $queueDispatcher->createTask($action, $parameters, null, null, true);
    }
public static function createTask ( $ where = [ ] , $ propertyValues = [ ] ) { $ serviceManager = ServiceManager :: getServiceManager ( ) ; $ action = new self ( ) ; $ action -> setServiceLocator ( $ serviceManager ) ; $ parameters = [ self :: OPTION_WHERE => $ where , self :: OPTION_PARAMETERS => $ propertyValues ] ; /** @var QueueDispatcher $queueDispatcher */ $ queueDispatcher = ServiceManager :: getServiceManager ( ) -> get ( QueueDispatcher :: SERVICE_ID ) ; return $ queueDispatcher -> createTask ( $ action , $ parameters , null , null , true ) ; }
Create a task to update a delivery
@param array $where
@param array $propertyValues
@return TaskInterface
Create a task to update a delivery