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 | | Main Functions |
||
42 | | ------------------------------------------------------------------------------------------------ |
||
43 | */ |
||
44 | /** |
||
45 | * Add a collection of repositories described by the given configuration |
||
46 | * to the given package and the global repository manager. |
||
47 | * |
||
48 | * @param \Composer\Package\RootPackageInterface $root |
||
49 | * @param \Arcanedev\Composer\Entities\PluginState $state |
||
50 | */ |
||
51 | private function addRepositories(RootPackageInterface $root, PluginState $state) |
||
71 | |||
72 | /* ------------------------------------------------------------------------------------------------ |
||
73 | | Other Functions |
||
74 | | ------------------------------------------------------------------------------------------------ |
||
75 | */ |
||
76 | /** |
||
77 | * Add a repository to collection of repositories. |
||
78 | * |
||
79 | * @param \Composer\Repository\RepositoryManager $repoManager |
||
80 | * @param array $repositories |
||
81 | * @param array $repoJson |
||
82 | * @param bool $prepend |
||
83 | */ |
||
84 | private function addRepository( |
||
101 | } |
||
102 |