1 | <?php |
||
14 | class ComposerLoaderExtension extends Extension |
||
15 | { |
||
16 | /** |
||
17 | * @var Composer |
||
18 | */ |
||
19 | protected $composer; |
||
20 | |||
21 | /** |
||
22 | * @param Composer $composer |
||
23 | * @return $this |
||
24 | */ |
||
25 | public function setComposer(Composer $composer) |
||
30 | |||
31 | /** |
||
32 | * @return Composer |
||
33 | */ |
||
34 | public function getComposer() |
||
38 | |||
39 | /** |
||
40 | * Retrieve an array of primary composer dependencies from composer.json. |
||
41 | * |
||
42 | * Packages are filtered by allowed type. |
||
43 | * |
||
44 | * @param array|null $allowedTypes An array of "allowed" package types. Dependencies in composer.json that do not |
||
45 | * match any of the given types are not returned. |
||
46 | * @return array[] |
||
47 | */ |
||
48 | public function getPackages(array $allowedTypes = null) |
||
75 | |||
76 | /** |
||
77 | * Find all dependency constraints for the given package in the current repository and return the strictest one |
||
78 | * |
||
79 | * @param BaseRepository $repository |
||
80 | * @param string $packageName |
||
81 | * @return string |
||
82 | */ |
||
83 | protected function getInstalledConstraint(BaseRepository $repository, $packageName) |
||
96 | |||
97 | /** |
||
98 | * Builds an instance of Composer |
||
99 | */ |
||
100 | public function onAfterBuild() |
||
109 | } |
||
110 |