The aim of this distribution is to supply a skeleton to start working with some bundles of Sonata already configured. At the moment supplies an integration with Sonata Admin, Sonata Classification and Sonata Media bundles.
This project is experimental!
-
Clone repository and generate a secret in parameters.yml.
-
Update vendors.
$ composer update
- Create database.
$ bin/console doctrine:database:create
- Update schema.
$ bin/console doctrine:schema:update --force
- Fix Sonata contexts.
This distribution defines 2 contexts: default e media under sonata_media
config
in src\AppAdminBundle\Resources\config\config.yml
$ bin/console sonata:classification:fix-context
$ bin/console sonata:media:fix-media-context
- Clear cache and install assets
$ bin/console cache:clear
$ bin/console assets:install
- Create and promote user to ROLE_SUPER_ADMIN.
$ bin/console fos:user:create
$ bin/console fos:user:promote
- Add uploads/media folder under web folder
$ mkdir web/uploads
$ mkdir web/uploads/media
$ chmod -R 0777 web/uploads
- Visit the admin page on
/admin/dashboard
.
Screenshots: