Skip to content

Commit 3766607

Browse files
committed
minor #490 Fix PSR4 in composer.json, add dump() (nicolas-grekas)
This PR was merged into the master branch. Discussion ---------- Fix PSR4 in composer.json, add dump() Empty psr-4 prefixes can force the autoloader to scan the `src/` directory for all namespaces. The best practice is to always have make the prefix explicit. `composer update` also, doing: ``` - Updating twig/twig (v1.31.0 => v1.32.0) Loading from cache - Updating sensiolabs/security-checker (v4.0.0 => v4.0.1) Loading from cache - Updating phpunit/php-timer (1.0.8 => 1.0.9) Loading from cache - Updating phpunit/php-token-stream (1.4.9 => 1.4.11) Loading from cache ``` Commits ------- 3adc0b9 Fix PSR4 in composer.json, add dump()
2 parents abac25f + 3adc0b9 commit 3766607

File tree

2 files changed

+35
-25
lines changed

2 files changed

+35
-25
lines changed

composer.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
"type": "project",
55
"description": "Symfony Demo Application",
66
"autoload": {
7-
"psr-4": { "": "src/" },
7+
"psr-4": {
8+
"AppBundle\\": "src/AppBundle/",
9+
"CodeExplorerBundle\\": "src/CodeExplorerBundle/"
10+
},
811
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
912
},
1013
"autoload-dev": {
11-
"psr-4": { "Tests\\": "tests/" }
14+
"psr-4": { "Tests\\": "tests/" },
15+
"files": [ "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php" ]
1216
},
1317
"require": {
1418
"php" : ">=5.5.9",

composer.lock

+29-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)