src/CommandAgents/OperationsAgent.php
public function upload($owner_name, $owner_id, $image_name, UploadedFile $uploadedFile)
    {
        $aRef = $this->makeOwnerRef($owner_name, $owner_id);
        $imageField = $this->makeImageField($owner_name, $image_name);

        $imageSetting = $this->imageSettingsSet->getImage($imageField);

        $this->upload->execute($aRef, $imageSetting, $uploadedFile);
    }
public function upload($owner_name, $owner_id, $image_name, UploadedFile $uploadedFile)
    {
        $aRef = $this->makeOwnerRef($owner_name, $owner_id);
        $imageField = $this->makeImageField($owner_name, $image_name);

        $imageSetting = $this->imageSettingsSet->getImage($imageField);

        $this->upload->execute($aRef, $imageSetting, $uploadedFile);
    }
@param $owner_name
@param $owner_id
@param $image_name
@param \Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile

@return void