carteni / sonata-distribution
dev-master
2018-02-06 17:05 UTC
Requires
- php: >=5.5.9
- doctrine/doctrine-bundle: ^1.6
- doctrine/orm: ^2.5
- egeloen/ckeditor-bundle: ^5.0
- egeloen/form-extra-bundle: ^2.0
- incenteev/composer-parameter-handler: ^2.0
- sensio/distribution-bundle: ^5.0.19
- sensio/framework-extra-bundle: ^3.0.2
- sonata-project/admin-bundle: ^3.3
- sonata-project/classification-bundle: ^3.3
- sonata-project/doctrine-orm-admin-bundle: ^3.1
- sonata-project/easy-extends-bundle: ^2.2
- sonata-project/media-bundle: ^3.0
- sonata-project/user-bundle: dev-master
- symfony/monolog-bundle: ^3.1.0
- symfony/polyfill-apcu: ^1.0
- symfony/swiftmailer-bundle: ^2.3.10
- symfony/symfony: 3.3.*
- tilleuls/ckeditor-sonata-media-bundle: ^1.0
- twig/twig: ^1.0
Requires (Dev)
- sensio/generator-bundle: ^3.0
- symfony/phpunit-bridge: ^3.0
This package is not auto-updated.
Last update: 2024-11-15 20:37:03 UTC
README
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!
Installation
-
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:
- Dashboard
- Media / List
- Category / Tree
- Category / Edit
- Post / Edit (SonataMediaBundle and CKEditor integration)