From 6c4cee62fe0a133b010239887998d6e28e207da5 Mon Sep 17 00:00:00 2001 From: Drak Date: Thu, 6 Jun 2013 20:50:43 +0200 Subject: [PATCH] Missing backslashes. --- doc/01-basic-usage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/01-basic-usage.md b/doc/01-basic-usage.md index 09f0ae5bc..bc4a88c1e 100644 --- a/doc/01-basic-usage.md +++ b/doc/01-basic-usage.md @@ -183,7 +183,7 @@ to `composer.json`. { "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. $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 classes to be autoloaded even if they do not conform to PSR-0. See the