protected function downloadPackage()
    {
        $this->crowdinClient->api('export')->execute();
        $path = $this->createArchiveDirectory();

        /** @var Download $download */
        $download = $this->crowdinClient->api('download');
        $download->setCopyDestination($path);
        $download->setPackage(self::CROWDIN_PACKAGE);
        $download->execute();

        $this->archive->setFilename(self::CROWDIN_PACKAGE);
        $this->archive->setPath($path);
    }
protected function downloadPackage()
    {
        $this->crowdinClient->api('export')->execute();
        $path = $this->createArchiveDirectory();

        /** @var Download $download */
        $download = $this->crowdinClient->api('download');
        $download->setCopyDestination($path);
        $download->setPackage(self::CROWDIN_PACKAGE);
        $download->execute();

        $this->archive->setFilename(self::CROWDIN_PACKAGE);
        $this->archive->setPath($path);
    }
protected function downloadPackage ( ) { $ this -> crowdinClient -> api ( 'export' ) -> execute ( ) ; $ path = $ this -> createArchiveDirectory ( ) ; /** @var Download $download */ $ download = $ this -> crowdinClient -> api ( 'download' ) ; $ download -> setCopyDestination ( $ path ) ; $ download -> setPackage ( self :: CROWDIN_PACKAGE ) ; $ download -> execute ( ) ; $ this -> archive -> setFilename ( self :: CROWDIN_PACKAGE ) ; $ this -> archive -> setPath ( $ path ) ; }
Download a fresh Crowdin package

@throws \Exception
Download a fresh Crowdin package