Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pborreli/openppmessagebundle

FOSMessageBundle + SonataAdminBundle
https://github.com/pborreli/openppmessagebundle

Last synced: 9 days ago
JSON representation

FOSMessageBundle + SonataAdminBundle

Awesome Lists containing this project

README

        

# Openpp Message Bundle

FOSMessageBundle + SonataAdminBundle

install
--------

composer require openpp/message-bundle
composer require sonata-project/admin-bundle
composer require sonata-project/doctrine-orm-admin-bundle
composer update

config
------

# FOS User
fos_user:
db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
firewall_name: main
user_class: Application\FOS\UserBundle\Entity\User

group:
group_class: Application\FOS\UserBundle\Entity\Group

registration:
confirmation:
enabled: true
from_email:
address: [email protected]
sender_name: openpp
resetting:
email:
from_email:
address: [email protected]
sender_name: openpp

Enable Bundle
-------------

// SONATA CORE & HELPER BUNDLES
new Sonata\EasyExtendsBundle\SonataEasyExtendsBundle(),

// USER
new FOS\UserBundle\FOSUserBundle()

// FOS MESSAGE
new FOS\MessageBundle\FOSMessageBundle(),
new Openpp\MessageBundle\OpenppMessageBundle(),

eazy-extends
------------

php app/console sonata:easy-extends:generate -d src OpenppMessageBundle
php app/console sonata:easy-extends:generate -d src FOSUserBundle

Append Bundle
-------------

new Application\Openpp\MessageBundle\ApplicationOpenppMessageBundle(),
new Application\FOS\UserBundle\ApplicationFOSUserBundle(),

User class
-----------

'
items:
- openpp.message.admin.thread
- openpp.message.admin.message