Improve the composer.json

- allow both stable and dev versions of Gaufrette to make the usage of the bundle easier
- switch autoloading to PSR-4 rather than using the legacy "target-dir" setting
- change the PHPUnit requirement to use maintained versions
This commit is contained in:
Christophe Coevoet 2015-08-05 11:24:03 +02:00
parent b928e97767
commit b8596b4ca1

View File

@ -17,16 +17,16 @@
], ],
"require": { "require": {
"symfony/framework-bundle": "2.*", "symfony/framework-bundle": "2.*",
"knplabs/gaufrette": "0.2.*@dev" "knplabs/gaufrette": "~0.1.7|0.2.*@dev"
}, },
"require-dev": { "require-dev": {
"symfony/yaml": "2.*", "symfony/yaml": "2.*",
"symfony/console": "2.*", "symfony/console": "2.*",
"phpunit/phpunit": "3.7.*" "phpunit/phpunit": "~4.2"
}, },
"autoload": { "autoload": {
"psr-0": { "psr-4": {
"Knp\\Bundle\\GaufretteBundle": "" "Knp\\Bundle\\GaufretteBundle\\": ""
} }
}, },
"extra": { "extra": {
@ -36,6 +36,5 @@
}, },
"config": { "config": {
"bin-dir": "bin" "bin-dir": "bin"
}, }
"target-dir": "Knp/Bundle/GaufretteBundle"
} }