Skip to content

Commit

Permalink
Fixed #5: VcsDriver class became abstract
Browse files Browse the repository at this point in the history
- Reverted getting namespaced types.
  • Loading branch information
andkirby committed Jul 14, 2017
1 parent 12d81e0 commit b1d06a5
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/Repository/VcsNamespaceRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ class VcsNamespaceRepository extends VcsRepository
const TYPE_GITLAB = 'gitlab-namespace';
const TYPE_GITHUB = 'github-namespace';
const TYPE_GIT_BITBACKET = 'git-bitbucket-namespace';

protected static $types;

/**#@-*/

/**
Expand Down Expand Up @@ -80,33 +77,22 @@ public function __construct(
$drivers[self::TYPE_GITHUB] = 'Composer\Repository\Vcs\GitHubDriver';
$drivers[self::TYPE_GIT_BITBACKET] = 'Composer\Repository\Vcs\GitBitbucketDriver';

self::$types = array_keys($drivers);

parent::__construct($repoConfig, $io, $config, $dispatcher, $drivers);
}

/**
* Get namespace types
* Get "namespaced" types
*
* @return array
*/
public static function getTypes()
{
return self::$types ?: [
return [
self::TYPE_VCS,
self::TYPE_GIT,
self::TYPE_GIT_BITBACKET,
self::TYPE_GITHUB,
self::TYPE_GITLAB,
'github',
'gitlab',
'git-bitbucket',
'git',
'hg-bitbucket',
'hg',
'perforce',
'fossil',
'svn',
];
}

Expand Down

0 comments on commit b1d06a5

Please sign in to comment.