WARNING: This bundle is still under developpement. While it is functional, the service names, configuration options etc. may change without worrying about BC breaks.
Add the Roger repository to your composer.json file:
"require": {
"theodo/roger-cms-bundle": "dev-master"
}
Then run
php composer.phar update theodo/roger-cms-bundle
Enable TheodoRogerCmsBundle and StofDoctrineExtensionsBundle in app/AppKernel.php
:
public function registerBundles()
{
$bundles = array(
...
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new Theodo\RogerCmsBundle\TheodoRogerCmsBundle(),
);
}
php app/console doctrine:schema:update --force
Add StofDoctrineExtensions:
stof_doctrine_extensions:
orm:
default:
timestampable: true
sluggable: true
Add the following lines to your app/config/routing.yml
file:
RogerCms:
resource: "@TheodoRogerCmsBundle/Resources/config/routing.xml"
prefix: /
Add RogerCms roles in app/config/security.yml
:
security:
role_hierarchy:
ROLE_ROGER_CONTENT: [ROLE_ROGER_READ_CONTENT, ROLE_ROGER_WRITE_CONTENT, ROLE_ROGER_DELETE_CONTENT, ROLE_ROGER_PUBLISH_CONTENT]
ROLE_ROGER_DESIGN: [ROLE_ROGER_READ_DESIGN, ROLE_ROGER_WRITE_DESIGN, ROLE_ROGER_DELETE_DESIGN]
ROLE_ROGER_EDITOR: [ROLE_ROGER_CONTENT, ROLE_ROGER_READ_DESIGN]
ROLE_ROGER_DESIGNER: [ROLE_ROGER_CONTENT, ROLE_ROGER_DESIGN]
ROLE_ADMIN: [ROLE_USER, ROLE_ROGER_DESIGNER]
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
providers:
in_memory:
memory:
users:
admin: { password: admin, roles: [ 'ROLE_ADMIN' ] }
Then go to /admin
and log in.
For more documentation, check out the Resources/doc
folder.