1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
13 | trait RepositoriesTrait |
||
14 | { |
||
15 | /* ------------------------------------------------------------------------------------------------ |
||
16 | | Properties |
||
17 | | ------------------------------------------------------------------------------------------------ |
||
18 | */ |
||
19 | /** @var array $json */ |
||
20 | protected $json = []; |
||
21 | |||
22 | /* ------------------------------------------------------------------------------------------------ |
||
23 | | Getters & Setters |
||
24 | | ------------------------------------------------------------------------------------------------ |
||
25 | */ |
||
26 | /** |
||
27 | * Get composer. |
||
28 | * |
||
29 | * @return \Composer\Composer |
||
30 | */ |
||
31 | abstract public function getComposer(); |
||
32 | |||
33 | /** |
||
34 | * Get the Logger. |
||
35 | * |
||
36 | * @return \Arcanedev\Composer\Utilities\Logger |
||
37 | */ |
||
38 | abstract public function getLogger(); |
||
39 | |||
40 | /** |
||
41 | * Get the json. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | abstract public function getJson(); |
||
46 | |||
47 | /* ------------------------------------------------------------------------------------------------ |
||
48 | | Main Functions |
||
49 | | ------------------------------------------------------------------------------------------------ |
||
50 | */ |
||
51 | /** |
||
52 | * Add a collection of repositories described by the given configuration |
||
53 | * to the given package and the global repository manager. |
||
54 | * |
||
55 | * @param \Composer\Package\RootPackageInterface $root |
||
56 | * @param \Arcanedev\Composer\Entities\PluginState $state |
||
57 | */ |
||
58 | private function addRepositories(RootPackageInterface $root, PluginState $state) |
||
80 | |||
81 | /* ------------------------------------------------------------------------------------------------ |
||
82 | | Other Functions |
||
83 | | ------------------------------------------------------------------------------------------------ |
||
84 | */ |
||
85 | /** |
||
86 | * Add a repository to collection of repositories. |
||
87 | * |
||
88 | * @param \Composer\Repository\RepositoryManager $repoManager |
||
89 | * @param array $repositories |
||
90 | * @param array $repoJson |
||
91 | * @param bool $prepend |
||
92 | */ |
||
93 | private function addRepository( |
||
110 | } |
||
111 |