Missing backslashes.

main
Drak 11 years ago
parent 1a7f734bc7
commit 6c4cee62fe

@ -183,7 +183,7 @@ to `composer.json`.
{ {
"autoload": { "autoload": {
"psr-0": {"Acme": "src/"} "psr-0": {"Acme\\": "src/"}
} }
} }
@ -203,7 +203,7 @@ the return value of the include call in a variable and add more namespaces.
This can be useful for autoloading classes in a test suite, for example. This can be useful for autoloading classes in a test suite, for example.
$loader = require 'vendor/autoload.php'; $loader = require 'vendor/autoload.php';
$loader->add('Acme\Test', __DIR__); $loader->add('Acme\\Test\\', __DIR__);
In addition to PSR-0 autoloading, classmap is also supported. This allows In addition to PSR-0 autoloading, classmap is also supported. This allows
classes to be autoloaded even if they do not conform to PSR-0. See the classes to be autoloaded even if they do not conform to PSR-0. See the

Loading…
Cancel
Save