2017 © Pedro Peláez
 

symfony-bundle notify-task-bundle

A bundle to manage tasks and notifications

image

creavo/notify-task-bundle

A bundle to manage tasks and notifications

  • Monday, October 2, 2017
  • by cklm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 3 % Grown

The README.md

CREAVO TaskNotifyBundle

SensioLabsInsight Packagist, (*1)

Installation

composer require creavo/notify-task-bundle

Add the bundle to your app/AppKernel.php with, (*2)

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            [...],
            new Creavo\NotifyTaskBundle\CreavoNotifyTaskBundle(),
        ];

        return $bundles;
    }

    [...]
}

register routing in routing.yml:, (*3)

notify_task:
    resource: '@CreavoNotifyTaskBundle/Resources/config/routing.xml'
    prefix: /task-notify

Update the doctrine-schema - use, (*4)

php bin/console doctrine:schema:update

or do a migration:, (*5)

php bin/console doctrine:migration:diff
php bin/console doctrine:migration:migrate

configuration

add to your config.yml and adjust to your wishes:, (*6)

creavo_notify_task:
    send_notification_immediately: true
    pushover_enabled: false
    pushover_api_token: YOUR_PUSHOVER_APP_TOKEN
    email_enabled: false
    email_from: symfony@localhost
    email_subject: new notification

usage

create notification:, (*7)

// create notification
$notification=$this->get('creavo_notify_task.notification')->create($user, 'this is the message', 'optional title', $relatedEntity);

// maybe modify notification further
$notification->setLinkTitle('Test');

// save it
$this->get('creavo_notify_task.notification')->save($nofitication);

// you can also save it with $em directly, but this will not trigger pushover or email-notification
$em->persist($notification);
$em->flush();

todo

  • create only one unread notification - system must check, if it already exists and maybe reject the second notification

The Versions

02/10 2017

dev-master

9999999-dev

A bundle to manage tasks and notifications

  Sources   Download

MIT

The Requires

 

by Christoph Keßeler

tasks notify symfony bundle

02/10 2017

0.1.9

0.1.9.0

A bundle to manage tasks and notifications

  Sources   Download

MIT

The Requires

 

by Christoph Keßeler

tasks notify symfony bundle

02/10 2017

0.1.8

0.1.8.0

A bundle to manage tasks and notifications

  Sources   Download

MIT

The Requires

 

by Christoph Keßeler

tasks notify symfony bundle

30/09 2017

0.1.7

0.1.7.0

A bundle to manage tasks and notifications

  Sources   Download

MIT

The Requires

 

by Christoph Keßeler

tasks notify symfony bundle

30/09 2017

0.1.6

0.1.6.0

A bundle to manage tasks and notifications

  Sources   Download

MIT

The Requires

 

by Christoph Keßeler

tasks notify symfony bundle

30/09 2017

0.1.5

0.1.5.0

A bundle to manage tasks and notifications

  Sources   Download

MIT

The Requires

 

by Christoph Keßeler

tasks notify symfony bundle

30/09 2017

0.1.4

0.1.4.0

A bundle to manage tasks and notifications

  Sources   Download

MIT

The Requires

 

by Christoph Keßeler

tasks notify symfony bundle

30/09 2017

0.1.3

0.1.3.0

A bundle to manage tasks and notifications

  Sources   Download

MIT

The Requires

 

by Christoph Keßeler

tasks notify symfony bundle

30/09 2017

0.1.2

0.1.2.0

A bundle to manage tasks and notifications

  Sources   Download

MIT

The Requires

 

by Christoph Keßeler

tasks notify symfony bundle

29/09 2017

0.1.1

0.1.1.0

A bundle to manage tasks and notifications

  Sources   Download

MIT

The Requires

 

by Christoph Keßeler

tasks notify symfony bundle

29/09 2017

0.1.0

0.1.0.0

A bundle to manage tasks and notifications

  Sources   Download

MIT

The Requires

 

by Christoph Keßeler

tasks notify symfony bundle