1
0
Fork 0

Use psr-0 instead of psr0

pull/61/head
Jordi Boggiano 2011-10-24 12:03:11 +02:00
parent 611639d26d
commit c03a739548
2 changed files with 3 additions and 3 deletions

View File

@ -49,8 +49,8 @@ $loader = new UniversalClassLoader();
EOF; EOF;
if (isset($autoloads['psr0'])) { if (isset($autoloads['psr-0'])) {
foreach ($autoloads['psr0'] as $def) { foreach ($autoloads['psr-0'] as $def) {
foreach ($def['mapping'] as $namespace => $path) { foreach ($def['mapping'] as $namespace => $path) {
$exportedNamespace = var_export($namespace, true); $exportedNamespace = var_export($namespace, true);
$exportedPath = var_export(($def['path'] ? '/'.$def['path'] : '').'/'.$path, true); $exportedPath = var_export(($def['path'] ? '/'.$def['path'] : '').'/'.$path, true);

View File

@ -221,7 +221,7 @@ interface PackageInterface
* *
* {"<type>": {"<namespace": "<directory>"}} * {"<type>": {"<namespace": "<directory>"}}
* *
* Type is either "psr0" or "pear". Namespaces are mapped to directories * Type is either "psr-0" or "pear". Namespaces are mapped to directories
* for autoloading using the type specified. * for autoloading using the type specified.
* *
* @return array Mapping of autoloading rules * @return array Mapping of autoloading rules