Преглед на файлове

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

This reverts commit 3a2ba8e0036f5bfa464d497721e3c267892839ff.
Jordi Boggiano преди 13 години
родител
ревизия
e8b4ac388f
променени са 3 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      src/Packagist/WebBundle/Entity/Package.php
  2. 1 1
      src/Packagist/WebBundle/Entity/Requirement.php
  3. 2 2
      src/Packagist/WebBundle/Entity/Version.php

+ 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,
         );
     }