PhilBert56 / Musee

Commandes de billets par Internet
0 stars 0 forks source link

Installer symfony et creer le bundle Tickets dans Symfony #1

Closed PhilBert56 closed 7 years ago

PhilBert56 commented 7 years ago

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 !