diff --git a/composer.json b/composer.json index 2e0a23d..9303037 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,8 @@ ], "require": { "composer-plugin-api": "^1.1 || ^2.0", - "composer/composer": "^1.9 || ^2.0" + "composer/composer": "^1.9 || ^2.0", + "laminas/laminas-stdlib": "^3.11.0" }, "require-dev": { "phpunit/phpunit": "^9.5", @@ -70,4 +71,4 @@ ], "class": "MagentoHackathon\\Composer\\Magento\\Plugin" } -} \ No newline at end of file +} diff --git a/src/MagentoHackathon/Composer/Magento/Deploystrategy/DeploystrategyAbstract.php b/src/MagentoHackathon/Composer/Magento/Deploystrategy/DeploystrategyAbstract.php index 796e935..97dfc3d 100644 --- a/src/MagentoHackathon/Composer/Magento/Deploystrategy/DeploystrategyAbstract.php +++ b/src/MagentoHackathon/Composer/Magento/Deploystrategy/DeploystrategyAbstract.php @@ -5,6 +5,8 @@ namespace MagentoHackathon\Composer\Magento\Deploystrategy; +use Laminas\Stdlib\Glob; + /** * Abstract deploy strategy */ @@ -342,7 +344,7 @@ public function remove($source, $dest) protected function removeContentOfCategory($sourcePath, $destPath) { $sourcePath = preg_replace('#/\*$#', '/{,.}*', $sourcePath); - $matches = glob($sourcePath, GLOB_BRACE); + $matches = Glob::glob($sourcePath, Glob::GLOB_BRACE); if ($matches) { foreach ($matches as $match) { if (preg_match("#/\.{1,2}$#", $match)) {