Changes between Version 9 and Version 10 of Symfony
- Timestamp:
- Feb 8, 2012, 9:34:41 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Symfony
v9 v10 11 11 A priori, j'ai utilisé la commande 12 12 {{{ 13 php app/console generate:bundle --namespace=PSPA/HelloBundle --format=yml 13 php Symfony/app/console ... 14 15 Usage: 16 generate:bundle [--namespace="..."] [--dir="..."] [--bundle-name="..."] [--format="..."] [--structure] 17 18 Options: 19 --namespace The namespace of the bundle to create 20 --dir The directory where to create the bundle 21 --bundle-name The optional bundle name 22 --format Use the format for configuration files (php, xml, yml, or annotation) (default: annotation) 23 --structure Whether to generate the whole directory structure 24 25 26 Pour notre cas: 27 28 php Symfony/app/console generate:bundle --namespace=PSPA/HelloBundle --dir=framework --format=yml 14 29 }}} 30 15 31 16 32 ''L'aide de cette command est visible [http://www.blog.manit4c.com/pdf/symfony2/cheat_sheet/symfony2-console.pdf ici]'' 17 33 18 Le défaut de cette commande est qu'elle crée le bundle à l'intérieur de la hiérarchie de dossier du package Symfony dans: 34 Cette commande crée le bundle et la structure de directory associée sous le dossier `framework` 35 19 36 {{{ 20 /Symfony/src/PSPA/... 21 }}} 22 23 Il est possible de déplacer tout le bundle dans un espace autonome (ici, dans le dossier `framework`) 24 {{{ 25 mv Symfony/src/PSPA framework 37 /framework/PSPA/HelloBundle/... 26 38 }}} 27 39
![(please configure the [header_logo] section in trac.ini)](/PSPA/chrome/site/pspa.gif)