Ver código fonte

Revert "Normalize package names" - this is now handled by Composer

This reverts commit 3a2ba8e0036f5bfa464d497721e3c267892839ff.
Jordi Boggiano 13 anos atrás
pai
commit
e8b4ac388f

+ 1 - 1
src/Packagist/WebBundle/Entity/Package.php

@@ -104,7 +104,7 @@ class Package
             $maintainers[] = $maintainer->toArray();
         }
         $data = array(
-            'name' => mb_strtolower($this->name, 'UTF-8'),
+            'name' => $this->name,
             'description' => $this->description,
             'dist-tags' => array(),
             'maintainers' => $maintainers,

+ 1 - 1
src/Packagist/WebBundle/Entity/Requirement.php

@@ -46,7 +46,7 @@ class Requirement
 
     public function toArray()
     {
-        return array(mb_strtolower($this->packageName, 'UTF-8') => $this->packageVersion);
+        return array($this->packageName => $this->packageVersion);
     }
 
     public function setId($id)

+ 2 - 2
src/Packagist/WebBundle/Entity/Version.php

@@ -148,7 +148,7 @@ class Version
             $requirements[key($requirement)] = current($requirement);
         }
         return array(
-            'name' => mb_strtolower($this->name, 'UTF-8'),
+            'name' => $this->name,
             'description' => $this->description,
             'keywords' => $tags,
             'homepage' => $this->homepage,
@@ -159,7 +159,7 @@ class Version
             'source' => $this->getSource(),
             'time' => $this->releasedAt ? $this->releasedAt->format('Y-m-d\TH:i:sP') : null,
             'dist' => $this->getDist(),
-            'type' => mb_strtolower($this->type, 'UTF-8'),
+            'type' => $this->type,
             'extra' => $this->extra,
         );
     }