From 2f69ebc624bfce8ea038aa083850f6632b5cefba Mon Sep 17 00:00:00 2001 From: Abdouni Abdelkarim Date: Fri, 6 Dec 2019 09:56:16 +0100 Subject: [PATCH] Update 01-basic-usage.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello, I add the `php composer.phar dump-autoload` command explicity because i didn't find it on the doc like this. Cheers 😉 --- doc/01-basic-usage.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/01-basic-usage.md b/doc/01-basic-usage.md index 4981542e8..cc5ac5459 100644 --- a/doc/01-basic-usage.md +++ b/doc/01-basic-usage.md @@ -241,8 +241,14 @@ be in your project root, on the same level as `vendor` directory is. An example filename would be `src/Foo.php` containing an `Acme\Foo` class. After adding the [`autoload`](04-schema.md#autoload) field, you have to re-run -[`dump-autoload`](03-cli.md#dump-autoload) to re-generate the -`vendor/autoload.php` file. +this command : + +```sh +php composer.phar dump-autoload +``` + +This command will re-generate the `vendor/autoload.php` file. +See the [`dump-autoload`](03-cli.md#dump-autoload) section for more informations. Including that file will also return the autoloader instance, so you can store the return value of the include call in a variable and add more namespaces.