1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Update example to use psr-4 namespace adding, fixes #6145

This commit is contained in:
Jordi Boggiano 2017-02-17 22:17:27 +01:00 committed by GitHub
parent 24f330eef4
commit b3fe9fa1a5

View file

@ -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