Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

La Console Symfony

560 views

Published on

la Console Symfony est un outil puissant qui facilite le développement et qui permet de gagner beaucoup de temps , dans ce slide on va la découvrir

Published in: Internet
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

La Console Symfony

  1. 1. La Console Symfony
  2. 2. Imad ZAIRIG Développeur Web (Symfony framework) https://ma.linkedin.com/in/zairigimad À propos de l'auteur
  3. 3. Table des matières Usage . Les Arguments et les options . Les Commandes usuelles . Tips & Tricks . Conclusion
  4. 4. L’usage: La forme génerale d’une commande Symfony 2.x s’écrit : - app/console : c’est l’appel au controleur frontal qui se situe dans le répertoire /app et qui déclanche l’execution des commandes symfony . - Command : c’est la commande que le controleur va réaliser . NB : Dans Symfony 3.0+ la Structure des dossier change de celle dans Symfony 2.x et le controleur frontal de la console se situe dans le dossier /bin d’ou la commande : $ php app/console [options] command [arguments] $ php bin/console [options] command [arguments]
  5. 5. Les Arguments et les options Pour connaitre les arguments d’une commande , soit on se réfère a la documentation officielle de symfony ou du Bundle utiliser , mais une meilleure methode pour trouver les arguments c’est de passer par l’option help de symfony . Plusieurs options existent comme : --env (-e) : pour choisir l'environnement ( dev, prod , test … ) --no-debug : désactiver le mode de débogage . --version (-v) : pour voir la version de l’application . $ php app/console help command
  6. 6. Les commandes usuelles $ php app/console list $ php app/console twig:lint $ php app/console cache:clear $ php app/console translation:update $ php app/console router:debug $ php app/console assets:install $ php app/console container:debug Liste toutes les commandes de l’application . Retourne si la syntaxe Twig est valide ou non . Supprime le cache de l’application Mise a jour de toutes les traductions de l’app . Liste toutes les Routes avec plus d’informations . Install les assets dans un dossier publique Web Liste toutes les services publique de l’application .
  7. 7. Tips & Tricks Pour suivre le principe de DRY ( Don’t Repeat Yourself ) , la console symfony vient avec des commandes qui génèrent des parties de codes et des repertoires pour nous faciliter le process de developpement et pour gagner le temps , parmis ces commandes je cite : $ php app/console generate:bundle $ php app/console doctrine:generate:entity $ php app/console doctrine:generate:crud Génère toute la structure de base d’un bundle avec les fichiers de configurations et des controleurs de base . Crée une entité Prête a utilisé . Crée le code de base pour ajouter , supprimer , modifier et supprimer des données basé sur une entité .
  8. 8. Tips & Tricks Comme vous avez remarqué , a chaque fois on veut faire une commande on utilise le début de la commande ( php app/console ) , pour éviter de taper cette chaine a chaque fois , on peut utiliser la commande On arrive a l’interface suivante : Donc au lieu de taper toute la commande On va taper juste : $ php app/console -s $ php app/console list > list
  9. 9. Conclusion Pour Conclure , la Console Symfony est un outil puissant qui facilite le developpement et qui permet de gagner beaucoup de temps , il existe un grand nombre de commande que vous trouverez dans la documentation , ou avec l’option list . Ne vous privez pas de ca generosité . $ php app/console fin:merci

×