1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
13 | trait RepositoriesTrait |
||
14 | { |
||
15 | /* ------------------------------------------------------------------------------------------------ |
||
16 | | Properties |
||
17 | | ------------------------------------------------------------------------------------------------ |
||
18 | */ |
||
19 | /** @var \Composer\Composer $composer */ |
||
20 | protected $composer; |
||
21 | |||
22 | /** @var \Arcanedev\Composer\Utilities\Logger $logger */ |
||
23 | protected $logger; |
||
24 | |||
25 | /** @var array $json */ |
||
26 | protected $json; |
||
27 | |||
28 | /* ------------------------------------------------------------------------------------------------ |
||
29 | | Main Functions |
||
30 | | ------------------------------------------------------------------------------------------------ |
||
31 | */ |
||
32 | /** |
||
33 | * Add a collection of repositories described by the given configuration |
||
34 | * to the given package and the global repository manager. |
||
35 | * |
||
36 | * @param \Composer\Package\RootPackageInterface $root |
||
37 | * @param \Arcanedev\Composer\Entities\PluginState $state |
||
38 | */ |
||
39 | private function addRepositories(RootPackageInterface $root, PluginState $state) |
||
59 | |||
60 | /* ------------------------------------------------------------------------------------------------ |
||
61 | | Other Functions |
||
62 | | ------------------------------------------------------------------------------------------------ |
||
63 | */ |
||
64 | /** |
||
65 | * Add a repository to collection of repositories. |
||
66 | * |
||
67 | * @param \Composer\Repository\RepositoryManager $repoManager |
||
68 | * @param array $repositories |
||
69 | * @param array $repoJson |
||
70 | * @param bool $prepend |
||
71 | */ |
||
72 | private function addRepository( |
||
89 | } |
||
90 |