summaryrefslogtreecommitdiffhomepage
path: root/php-composer.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'php-composer.html.markdown')
-rw-r--r--php-composer.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/php-composer.html.markdown b/php-composer.html.markdown
index 16fed582..15c75aff 100644
--- a/php-composer.html.markdown
+++ b/php-composer.html.markdown
@@ -101,7 +101,6 @@ composer update phpunit/phpunit
# If you wish to migrate a package to a newer version preference, you may need to remove the older package and its dependencies first.
composer remove --dev phpunit/phpunit
composer require --dev phpunit/phpunit:^5.0
-
```
## Autoloader
@@ -127,6 +126,7 @@ In `composer.json`, add a 'autoload' field:
}
}
```
+
This will tell the autoloader to look for anything in the `\Acme\` namespace within the `src` folder.
You can also [use PSR-0, a Classmap or just a list of files to include](https://getcomposer.org/doc/04-schema.md#autoload). There is also the `autoload-dev` field for development-only namespaces.