1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
12 | trait RepositoriesTrait |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Traits |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | use PackageTrait; |
||
19 | |||
20 | /* ------------------------------------------------------------------------------------------------ |
||
21 | | Main Functions |
||
22 | | ------------------------------------------------------------------------------------------------ |
||
23 | */ |
||
24 | /** |
||
25 | * Add a collection of repositories described by the given configuration |
||
26 | * to the given package and the global repository manager. |
||
27 | * |
||
28 | * @param \Composer\Package\RootPackageInterface $root |
||
29 | */ |
||
30 | 99 | private function prependRepositories(RootPackageInterface $root) |
|
47 | |||
48 | /* ------------------------------------------------------------------------------------------------ |
||
49 | | Other Functions |
||
50 | | ------------------------------------------------------------------------------------------------ |
||
51 | */ |
||
52 | /** |
||
53 | * Add a repository to collection of repositories. |
||
54 | * |
||
55 | * @param \Composer\Repository\RepositoryManager $repoManager |
||
56 | * @param array $repositories |
||
57 | * @param array $repoJson |
||
58 | */ |
||
59 | 12 | private function addRepository( |
|
71 | } |
||
72 |