2017 © Pedro Peláez
 

symfony-bundle activity-bundle

Activity Bundle

image

braune-digital/activity-bundle

Activity Bundle

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

BrauneDigitalActivityBundle

This Bundle allows the creation of activities based on Entity-Audits. It also displays the activity in SonataAdmin., (*1)

Requirements

Required:
* SimpleThingsEntityAuditBundle * DoctrineORM, (*2)

Optional: * SonataAdminBundle, (*3)

Installation

For SimpleThingsEntityAuditBundle < 1.0.6 install the the bundle using composer:, (*4)

composer require braune-digital/activity-bundle "~1.2"

For SimpleThingsEntityAuditBundle >= 1.0.6 install the the bundle with:, (*5)

composer require braune-digital/activity-bundle "~1.3"

And enable the Bundle in your AppKernel:, (*6)

public function registerBundles()
    {
        $bundles = array(
          ...
          new SimpleThings\EntityAudit\SimpleThingsEntityAuditBundle(),
          new BrauneDigital\ActivityBundle\BrauneDigitalActivityBundle(),
          ...
        );

Configuration

braune_digital_activity:
    doctrine_subscribing: true  #enable the direct creation of activities
    observed_classes:           #array of classes that need to be watched
        'AppBundle\Entity\TimedTask': #classname
            fields:                           #watched fields
              created: ~
              title: ~
              modified: ~
        'Application\Ekas\AppBundle\Entity\Step': ~ # watch creation / deletion only
        'AppBundle\Entity\TimedTask':
            fields:
                done: ~
                title: ~
                description: ~

Configure Entities

Resolve UserInterface:, (*7)

doctrine:
    orm:
        resolve_target_entities:
            BrauneDigital\ActivityBundle\Model\UserInterface: Application\AppBundle\Entity\User

Add Doctrine Relations to your User, (*8)

  oneToMany:
      activities:
          targetEntity: 'BrauneDigital\ActivityBundle\Entity\Stream\Activity'
          mappedBy: user
          cascade: ["persist", "remove"]

Build a Stream using the consle

php app/console braunedigital:activity:buildstream

TODO

  • Add Usage-Section in Readme

The Versions

17/04 2018

dev-master

9999999-dev

Activity Bundle

  Sources   Download

MIT

activity bundle

26/10 2017

1.3.x-dev

1.3.9999999.9999999-dev

Activity Bundle

  Sources   Download

MIT

activity bundle

13/04 2016

1.2.x-dev

1.2.9999999.9999999-dev

Activity Bundle

  Sources   Download

MIT

activity bundle

13/04 2016

1.1.x-dev

1.1.9999999.9999999-dev

Activity Bundle

  Sources   Download

MIT

The Requires

 

activity bundle

24/06 2015

1.0.x-dev

1.0.9999999.9999999-dev

Activity Bundle

  Sources   Download

MIT

activity bundle