2017 © Pedro Peláez
 

symfony-bundle message-bundle

Provides user-to-user messaging features for your Symfony2 application.

image

pborreli/message-bundle

Provides user-to-user messaging features for your Symfony2 application.

  • Tuesday, June 20, 2017
  • by pborreli
  • Repository
  • 1 Watchers
  • 1 Stars
  • 257 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 24 Versions
  • 1 % Grown

The README.md

Openpp Message Bundle

FOSMessageBundle + SonataAdminBundle, (*1)

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:        registration@acmedemo.com
                sender_name:    openpp
    resetting:
        email:
            from_email:
                address:        resetting@acmedemo.com
                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

<?php

namespace Application\FOS\UserBundle\Entity;

use FOS\UserBundle\Model\User as AbstractUser;

class User extends AbstractUser
{
}

config

fos_message:
    db_driver:          orm
    thread_class:       Application\Openpp\MessageBundle\Entity\Thread
    message_class:      Application\Openpp\MessageBundle\Entity\Message
openpp_message:
    monitoring_enable:  true
    monitoring_default: 0
    user_class:         Application\FOS\UserBundle\Entity\User

monitoring_enable を true にすることで、監視を有効にします。 監視が有効になると、 message の stats の値が STATUS_VALID(0) の場合のみ表示されます。 STATUSは3つあり、デフォルト値として monitoring_default に指定できます。 また、指定しない場合は null が入ります。, (*2)

const STATUS_VALID = 0;
const STATUS_INVALID = 1;
const STATUS_MODERATE = 2;

schema

php app/console cache:clear
php app/console doctrine:schema:update --dump-sql
php app/console doctrine:schema:update --force

routing

fos_message:
    resource: "@OpenppMessageBundle/Resources/config/routing.xml"
    prefix: /message

sonata admin

        openpp.message.admin.message:
            label:            Message
            icon:            '<i class="fa fa-weixin"></i>'
            items:
                - openpp.message.admin.thread
                - openpp.message.admin.message

The Versions

20/06 2017
04/08 2016
04/08 2016
03/08 2016

0.0.20

0.0.20.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

02/08 2016

0.0.19

0.0.19.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

01/08 2016

0.0.18

0.0.18.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

29/07 2016

0.0.17

0.0.17.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

29/07 2016

0.0.16

0.0.16.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

28/07 2016

0.0.15

0.0.15.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

28/07 2016

0.0.14

0.0.14.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

28/07 2016

0.0.13

0.0.13.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

28/07 2016

0.0.12

0.0.12.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

27/07 2016

0.0.11

0.0.11.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

27/07 2016

0.0.10

0.0.10.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

26/07 2016

0.0.9

0.0.9.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

25/07 2016

0.0.8

0.0.8.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

25/07 2016

0.0.7

0.0.7.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

25/07 2016

0.0.6

0.0.6.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

21/07 2016

0.0.4

0.0.4.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

21/07 2016

0.0.3

0.0.3.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp

20/07 2016

0.0.2

0.0.2.0 https://github.com/webwarejp/OpenppMessageBundle

Provides user-to-user messaging features for your Symfony2 application.

  Sources   Download

MIT

The Requires

 

by yositani2002

symfony message messaging openpp