From b3fe9fa1a5cac1c33009f4668933e43b737fb8db Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 17 Feb 2017 22:17:27 +0100 Subject: [PATCH] Update example to use psr-4 namespace adding, fixes #6145 --- doc/01-basic-usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/01-basic-usage.md b/doc/01-basic-usage.md index b33f06ac6..06bfa83a4 100644 --- a/doc/01-basic-usage.md +++ b/doc/01-basic-usage.md @@ -193,7 +193,7 @@ This can be useful for autoloading classes in a test suite, for example. ```php $loader = require __DIR__ . '/vendor/autoload.php'; -$loader->add('Acme\\Test\\', __DIR__); +$loader->addPsr4('Acme\\Test\\', __DIR__); ``` In addition to PSR-4 autoloading, Composer also supports PSR-0, classmap and