- Add the following lines to your
composer.json
// composer.json
"require": {
//...,
"rps/core-bundle": "dev-master",
"rps/guestbook-bundle": "dev-master"
}
- Update the dependency
php composer.phar update rps/guestbook-bundle
Or you can do both steps in one command
php composer.phar require rps/core-bundle:dev-master rps/guestbook-bundle:dev-master
- Publish the bundle assets.
Run the following command
php app/console assets:install web [--symlink]
use the --symlink
option to use symlinks to bundle assets.
- Enable the bundle
Add the RPSCoreBundle and RPSGuestbookBundle to your application kernel.
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...,
new RPS\CoreBundle\RPSCoreBundle(),
new RPS\GuestbookBundle\RPSGuestbookBundle(),
);
}
- Import the RPSGuestbookBundle routing file
Add the following to you routing file
# app/config/routing.yml
rps_guestbook:
resource: "@RPSGuestbookBundle/Resources/config/routing.yml"
prefix: /
- Enable the translator in your configuration
# app/config/config.yml
framework:
translator: { fallback: ~ }
For more information about translations, check the Symfony Translation documentation
- Update your schema
For ORM users run the following command
app/console doctrine:schema:update --force
For MongoDB users run the following command.