Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- php composer.phar create-project symfony/framework-standard-edition test.test
- php composer.phar create-project symfony/framework-standard-edition testproj @stable
- or
- >php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"
- >php symfony new test.test
- >php console generate:bundle --namespace=A1/TestBundle
- Fatal error: \app\AppKernel.php on line 19
- edit composer.json
- "autoload": {
- "psr-4": {
- "": "src/"
- },
- "classmap": [
- "app/AppKernel.php",
- "app/AppCache.php"
- ]
- }
- >php composer.phar dump-autoload
- Edit the composer.json file and register the bundle
- namespace in the "autoload" section:
- Add your new bundle to the composer.json file
- "autoload": {
- "psr-0": {
- "currentbundle\\": "src/",
- "YOURNEWBUNDLE\\": "src/",
- }
- }
- You then need to run install on composer again
- composer -n install --dev
- You should then have both of the bundles autoloaded
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement