/** * Run the processor, downloading and transferring the package, and creating the metadata in the database * {@inheritDoc} * @return mixed */ public function process() { if (!$this->loadProvider()) { return $this->failure($this->modx->lexicon('provider_err_nf')); } $this->package = $this->provider->transfer($this->signature, null, array('location' => $this->location)); if (!$this->package) { return $this->failure($this->modx->lexicon('package_download_err_create', array('signature' => $this->signature))); } return $this->success('', $this->package); }