summaryrefslogtreecommitdiffhomepage
path: root/php-composer.html.markdown
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2024-04-06 08:33:50 -0700
committerBoris Verkhovskiy <boris.verk@gmail.com>2024-04-06 08:33:50 -0700
commit3e687f1a8ccb1cd0d52a966005551d528ca141df (patch)
tree30d433ba19ec49808cc0f0de8a161835ad5f29c9 /php-composer.html.markdown
parent9fa4b5af80f1cd7fe2469c198d02a21e4f8884a1 (diff)
Remove leading and trailing empty lines in code blocks
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.