Skip to content
Snippets Groups Projects
Commit 1f2bda76 authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3347959 by phenaproxima, tedbow: ComposerPluginsValidator uses...

Issue #3347959 by phenaproxima, tedbow: ComposerPluginsValidator uses Composer's internal Package class
parent 583814c6
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@ declare(strict_types = 1);
namespace Drupal\package_manager\Validator;
use Composer\Package\Package;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Component\Serialization\Json;
use Drupal\Core\Config\ConfigFactoryInterface;
......@@ -131,8 +130,7 @@ final class ComposerPluginsValidator implements EventSubscriberInterface {
* The normalized package name.
*/
private static function normalizePackageName(string $package_name): string {
// Normalize the configured package names using Composer's own logic.
return (new Package($package_name, 'irrelevant', 'irrelevant'))->getName();
return strtolower($package_name);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment