12345678910111213141516171819202122232425 |
- <?php
- namespace Fgm\ComposerCheck;
- class RequirementsLoader extends LoaderBase implements LoaderInterface {
-
- public function __construct(string $directory) {
- $this->file = realpath("${directory}/composer.json");
- }
-
- public function parse() {
- $this->run = $this->contents['require'] ?? [];
- $this->dev = $this->contents['require-dev'] ?? [];
- }
- }
|