From d57b5f4f053459d4defcac95baa28b1ccdf232bd Mon Sep 17 00:00:00 2001 From: Eder Soares Date: Tue, 20 Aug 2024 15:57:23 -0300 Subject: [PATCH 1/4] Fix wrong path --- src/Composer/Factory.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index a216145..6b285b7 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -244,14 +244,16 @@ private function filesystem(): Filesystem private function experimentalAutoloadStrategy(array $data): void { - $this->filesystem()->ensureDirectoryExists(PlugAndPlayInterface::PACKAGES_VENDOR . '/' . $data['name']); + $path = PlugAndPlayInterface::PACKAGES_VENDOR . DIRECTORY_SEPARATOR . $data['name']; + + $this->filesystem()->ensureDirectoryExists($path); unset($data['autoload']); unset($data['autoload-dev']); $json = json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) . PHP_EOL; - file_put_contents(PlugAndPlayInterface::PACKAGES_VENDOR . '/' . $data['name'] . '/composer.json', $json); + file_put_contents($path . '/composer.json', $json); } /** From b598b10716c693d3ee95870bf6109231befd1fa3 Mon Sep 17 00:00:00 2001 From: Eder Soares Date: Tue, 20 Aug 2024 15:57:31 -0300 Subject: [PATCH 2/4] Docs --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 00d9885..dc50f38 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ Latest Release License -Add to [Composer](https://getcomposer.org/), a dependency manager for PHP, the ability to plug and play packages without -necessarily installing a new dependency on `composer.json`. +Adds to [Composer](https://getcomposer.org/), PHP's dependency manager, the ability to plug and play packages without necessarily installing +a new dependency on `composer.json`. ## Installation @@ -18,8 +18,7 @@ composer require dex/composer-plug-and-play ### Global installation -You can install [Composer Plug and Play](https://github.com/edersoares/composer-plug-and-play/) globally to use its -abilities in all your local projects. +You can install [Composer Plug and Play](https://github.com/edersoares/composer-plug-and-play/) globally to use its abilities in all your local projects. ```bash composer global require dex/composer-plug-and-play From eae382833b210e15f68286b79a9fd5fbdc6bbb38 Mon Sep 17 00:00:00 2001 From: Eder Soares Date: Thu, 3 Oct 2024 08:25:52 -0300 Subject: [PATCH 3/4] Adds support to Composer 2.8 --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 702d7da..986fec4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,6 +27,7 @@ jobs: - 2.5 - 2.6 - 2.7 + - 2.8 steps: - uses: actions/checkout@v2 From f352e41d9a83ca3184543228c6d890548fe15405 Mon Sep 17 00:00:00 2001 From: Eder Soares Date: Thu, 3 Oct 2024 08:39:35 -0300 Subject: [PATCH 4/4] Removes `pestphp/pest-plugin-drift` --- composer.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 1ccf2a0..46b115e 100644 --- a/composer.json +++ b/composer.json @@ -18,8 +18,7 @@ "require-dev": { "composer/composer": "^2.3.0", "laravel/pint": "^1.7", - "pestphp/pest": "^2.34", - "pestphp/pest-plugin-drift": "^2.5" + "pestphp/pest": "^2.34" }, "autoload": { "psr-4": { @@ -43,7 +42,7 @@ "format": "Format code", "test": "Runs package tests", "test:coverage": "Runs coverage", - "test:coverage:open": "Open coverage report" + "test:coverage:open": "Opens coverage report" }, "config": { "allow-plugins": {