protected function getVcsRepositoryUrl(array $data, $registryName = null)
    {
        if (!isset($data['repository']['url'])) {
            $msg = sprintf('The "repository.url" parameter of "%s" %s asset package must be present for create a VCS Repository', $registryName, $this->assetType->getName());
            $msg .= PHP_EOL.'If the config comes from the Bower Private Registry, override the config with a custom Asset VCS Repository';
            $ex = new InvalidCreateRepositoryException($msg);
            $ex->setData($data);

            throw $ex;
        }

        return (string) $data['repository']['url'];
    }
protected function getVcsRepositoryUrl(array $data, $registryName = null)
    {
        if (!isset($data['repository']['url'])) {
            $msg = sprintf('The "repository.url" parameter of "%s" %s asset package must be present for create a VCS Repository', $registryName, $this->assetType->getName());
            $msg .= PHP_EOL.'If the config comes from the Bower Private Registry, override the config with a custom Asset VCS Repository';
            $ex = new InvalidCreateRepositoryException($msg);
            $ex->setData($data);

            throw $ex;
        }

        return (string) $data['repository']['url'];
    }
protected function getVcsRepositoryUrl ( array $ data , $ registryName = null ) { if ( ! isset ( $ data [ 'repository' ] [ 'url' ] ) ) { $ msg = sprintf ( 'The "repository.url" parameter of "%s" %s asset package must be present for create a VCS Repository' , $ registryName , $ this -> assetType -> getName ( ) ) ; $ msg .= PHP_EOL . 'If the config comes from the Bower Private Registry, override the config with a custom Asset VCS Repository' ; $ ex = new InvalidCreateRepositoryException ( $ msg ) ; $ ex -> setData ( $ data ) ; throw $ ex ; } return ( string ) $ data [ 'repository' ] [ 'url' ] ; }
Get the URL of VCS repository.

@param array  $data         The repository config
@param string $registryName The package name in asset registry

@throws InvalidCreateRepositoryException When the repository.url parameter does not exist

@return string
Get the URL of VCS repository .