Use psr-0 instead of psr0
parent
611639d26d
commit
c03a739548
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue