méthode d'installation utilisée :
depuis le fichier du projet : php -r "readfile('https://symfony.com/installer');" > symfony
puis php symfony new MuseumTickets
une fois l'installation terminée : cd MuseumTickets
puis php bin/console server:run
résultat de l'installation : Welcome to Symfony 3.3.6
Création du bundle : php bin/console generate:bundle
Are you planning on sharing this bundle across multiple applications? [no]: yes
Bundle namespace: Museum/TicketBundle
Bundle name [MuseumTicketBundle]:
Configuration format (annotation, yml, xml, php) [xml]: yml
réponse : > Checking that the bundle is autoloaded FAILED
The command was not able to configure everything automatically.
You'll need to make the following changes manually.
Edit the composer.json file and register the bundle
namespace in the "autoload" section:
correction effectuée dans le fichier composer.json :
"autoload": {
"psr-4": {
"":"src/"
},
puis exécution de la commande > composer dump-autoload dans la console
Fixe le problème de la génération du bundle
L'installation de symfony et du bundle du projet est réussie !
méthode d'installation utilisée : depuis le fichier du projet : php -r "readfile('https://symfony.com/installer');" > symfony puis php symfony new MuseumTickets
une fois l'installation terminée : cd MuseumTickets puis php bin/console server:run
résultat de l'installation : Welcome to Symfony 3.3.6
Création du bundle : php bin/console generate:bundle Are you planning on sharing this bundle across multiple applications? [no]: yes Bundle namespace: Museum/TicketBundle Bundle name [MuseumTicketBundle]: Configuration format (annotation, yml, xml, php) [xml]: yml
réponse : > Checking that the bundle is autoloaded FAILED The command was not able to configure everything automatically. You'll need to make the following changes manually.
Edit the composer.json file and register the bundle namespace in the "autoload" section:
correction effectuée dans le fichier composer.json : "autoload": { "psr-4": { "":"src/" }, puis exécution de la commande > composer dump-autoload dans la console Fixe le problème de la génération du bundle
L'installation de symfony et du bundle du projet est réussie !