Generar un Bundle
Versión 2 (Guillermo Zdanowicz, 30/09/2015 15:48)
| 1 | 1 | Guillermo Zdanowicz | h1. Generar un Bundle (Symfony 2 contempla todo en conceptos de bundle y no de aplicaciones como en symfony 1.4) |
|---|---|---|---|
| 2 | 1 | Guillermo Zdanowicz | |
| 3 | 1 | Guillermo Zdanowicz | php app/console generate:bundle --namespace=JobeetBundle |
| 4 | 2 | Guillermo Zdanowicz | |
| 5 | 2 | Guillermo Zdanowicz | <pre> |
| 6 | 2 | Guillermo Zdanowicz | Bundle name [JobeetBundle]: |
| 7 | 2 | Guillermo Zdanowicz | |
| 8 | 2 | Guillermo Zdanowicz | The bundle can be generated anywhere. The suggested default directory uses |
| 9 | 2 | Guillermo Zdanowicz | the standard conventions. |
| 10 | 2 | Guillermo Zdanowicz | |
| 11 | 2 | Guillermo Zdanowicz | Target directory [/var/www/html/symfony27/src]: |
| 12 | 2 | Guillermo Zdanowicz | |
| 13 | 2 | Guillermo Zdanowicz | Determine the format to use for the generated configuration. |
| 14 | 2 | Guillermo Zdanowicz | |
| 15 | 2 | Guillermo Zdanowicz | Configuration format (yml, xml, php, or annotation): *yml* |
| 16 | 2 | Guillermo Zdanowicz | |
| 17 | 2 | Guillermo Zdanowicz | To help you get started faster, the command can generate some |
| 18 | 2 | Guillermo Zdanowicz | code snippets for you. |
| 19 | 2 | Guillermo Zdanowicz | |
| 20 | 2 | Guillermo Zdanowicz | Do you want to generate the whole directory structure [no]? yes |
| 21 | 2 | Guillermo Zdanowicz | |
| 22 | 2 | Guillermo Zdanowicz | |
| 23 | 2 | Guillermo Zdanowicz | Summary before generation |
| 24 | 2 | Guillermo Zdanowicz | |
| 25 | 2 | Guillermo Zdanowicz | |
| 26 | 2 | Guillermo Zdanowicz | You are going to generate a "Ibw\JobeetBundle\IbwJobeetBundle" bundle |
| 27 | 2 | Guillermo Zdanowicz | in "/var/www/html/symfony27/src/" using the "yml" format. |
| 28 | 2 | Guillermo Zdanowicz | |
| 29 | 2 | Guillermo Zdanowicz | Do you confirm generation [yes]? yes |
| 30 | 2 | Guillermo Zdanowicz | |
| 31 | 2 | Guillermo Zdanowicz | |
| 32 | 2 | Guillermo Zdanowicz | Bundle generation |
| 33 | 2 | Guillermo Zdanowicz | |
| 34 | 2 | Guillermo Zdanowicz | |
| 35 | 2 | Guillermo Zdanowicz | Generating the bundle code: OK |
| 36 | 2 | Guillermo Zdanowicz | Checking that the bundle is autoloaded: OK |
| 37 | 2 | Guillermo Zdanowicz | Confirm automatic update of your Kernel [yes]? yes |
| 38 | 2 | Guillermo Zdanowicz | Enabling the bundle inside the Kernel: OK |
| 39 | 2 | Guillermo Zdanowicz | Confirm automatic update of the Routing [yes]? yes |
| 40 | 2 | Guillermo Zdanowicz | Importing the bundle routing resource: OK |
| 41 | 2 | Guillermo Zdanowicz | |
| 42 | 2 | Guillermo Zdanowicz | |
| 43 | 2 | Guillermo Zdanowicz | You can now start using the generated code! |
| 44 | 2 | Guillermo Zdanowicz | </pre> |
| 45 | 2 | Guillermo Zdanowicz | |
| 46 | 2 | Guillermo Zdanowicz | *Borrar Cache* |
| 47 | 2 | Guillermo Zdanowicz | |
| 48 | 2 | Guillermo Zdanowicz | php app/console cache:clear --env=prod |
| 49 | 2 | Guillermo Zdanowicz | php app/console cache:clear --env=dev |
| 50 | 2 | Guillermo Zdanowicz | |
| 51 | 2 | Guillermo Zdanowicz | *Editar parametros del sistema* |
| 52 | 2 | Guillermo Zdanowicz | |
| 53 | 2 | Guillermo Zdanowicz | app/config/parameters.yml |