1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
13 | trait DevTrait |
||
14 | { |
||
15 | /* ------------------------------------------------------------------------------------------------ |
||
16 | | Traits |
||
17 | | ------------------------------------------------------------------------------------------------ |
||
18 | */ |
||
19 | use PackageTrait; |
||
20 | |||
21 | /* ------------------------------------------------------------------------------------------------ |
||
22 | | Main Functions |
||
23 | | ------------------------------------------------------------------------------------------------ |
||
24 | */ |
||
25 | /** |
||
26 | * Merge just the dev portion into a RootPackageInterface. |
||
27 | * |
||
28 | * @param \Composer\Package\RootPackageInterface $root |
||
29 | * @param \Arcanedev\Composer\Entities\PluginState $state |
||
30 | */ |
||
31 | public function mergeDevInto(RootPackageInterface $root, PluginState $state) |
||
37 | |||
38 | /** |
||
39 | * Merge require-dev into RootPackage. |
||
40 | * |
||
41 | * @param \Composer\Package\RootPackageInterface $root |
||
42 | * @param \Arcanedev\Composer\Entities\PluginState $state |
||
43 | */ |
||
44 | abstract protected function mergeDevRequires(RootPackageInterface $root, PluginState $state); |
||
45 | |||
46 | /** |
||
47 | * Merge autoload-dev into a RootPackage. |
||
48 | * |
||
49 | * @param \Composer\Package\RootPackageInterface $root |
||
50 | */ |
||
51 | private function mergeDevAutoload(RootPackageInterface $root) |
||
60 | |||
61 | /** |
||
62 | * Update the root packages reference information. |
||
63 | * |
||
64 | * @param \Composer\Package\RootPackageInterface $root |
||
65 | */ |
||
66 | abstract protected function mergeReferences(RootPackageInterface $root); |
||
67 | } |
||
68 |