Skip to content

Commit

Permalink
Added url repository type support
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Aug 2, 2019
1 parent 1aa6503 commit 3398131
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class Assets
'hg' => 'Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository',
'perforce' => 'Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository',
'svn' => 'Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository',
'url' => 'Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository',
);

/**
Expand All @@ -69,6 +70,7 @@ class Assets
'hg-bitbucket' => 'Fxp\Composer\AssetPlugin\Repository\Vcs\HgBitbucketDriver',
'hg' => 'Fxp\Composer\AssetPlugin\Repository\Vcs\HgDriver',
'perforce' => 'Fxp\Composer\AssetPlugin\Repository\Vcs\PerforceDriver',
'url' => 'Fxp\Composer\AssetPlugin\Repository\Vcs\GitDriver',
// svn must be last because identifying a subversion server for sure is practically impossible
'svn' => 'Fxp\Composer\AssetPlugin\Repository\Vcs\SvnDriver',
);
Expand Down
2 changes: 2 additions & 0 deletions Tests/AssetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function testGetVcsRepositoryDrivers()
'hg',
'perforce',
'svn',
'url',
), array_keys(Assets::getVcsRepositoryDrivers()));
}

Expand All @@ -61,6 +62,7 @@ public function testGetVcsDrivers()
'hg-bitbucket',
'hg',
'perforce',
'url',
'svn',
), array_keys(Assets::getVcsDrivers()));
}
Expand Down

0 comments on commit 3398131

Please sign in to comment.