1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
13 | trait RepositoriesTrait |
||
14 | { |
||
15 | /* ------------------------------------------------------------------------------------------------ |
||
16 | | Traits |
||
17 | | ------------------------------------------------------------------------------------------------ |
||
18 | */ |
||
19 | use PackageTrait; |
||
20 | |||
21 | /* ------------------------------------------------------------------------------------------------ |
||
22 | | Main Functions |
||
23 | | ------------------------------------------------------------------------------------------------ |
||
24 | */ |
||
25 | /** |
||
26 | * Add a collection of repositories described by the given configuration |
||
27 | * to the given package and the global repository manager. |
||
28 | * |
||
29 | * @param \Composer\Package\RootPackageInterface $root |
||
30 | * @param \Arcanedev\Composer\Entities\PluginState $state |
||
31 | */ |
||
32 | private function addRepositories(RootPackageInterface $root, PluginState $state) |
||
54 | |||
55 | /* ------------------------------------------------------------------------------------------------ |
||
56 | | Other Functions |
||
57 | | ------------------------------------------------------------------------------------------------ |
||
58 | */ |
||
59 | /** |
||
60 | * Add a repository to collection of repositories. |
||
61 | * |
||
62 | * @param \Composer\Repository\RepositoryManager $repoManager |
||
63 | * @param array $repositories |
||
64 | * @param array $repoJson |
||
65 | * @param bool $prepend |
||
66 | */ |
||
67 | private function addRepository( |
||
84 | } |
||
85 |