sipsynergy/activity-stream-bundle

Activity Stream Bundle

1.0.9 2016-10-11 11:14 UTC

This package is not auto-updated.

Last update: 2024-04-27 17:26:22 UTC


README

About

@WIP

Activity Stream Bundle is a PHP 5.6+ Symfony bundle providing a stream activity log management.

Installation

With composer

This bundle can be installed using composer by adding the following in the require section of your composer.json file:

    "require": {
        ...
        "sipsynergy/activity-stream-bundle": "1.0.0"
    },

Register the bundle

You must register the bundle in your kernel:

<?php

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(

        // ...

        new Sipsynergy\ActivityStreamBundle\SipsynergyActivityStreamBundle(),
    );

    // ...
}

Run migrations.

Either using doctrine:migrations:migrate or doctrine:schema:update

Configuration

Configuring

If you wish to use your own default renderer, define it and point bundle to it.

# app/config/config.yml
sipsynergy_activity_stream:
    renderer:
        default_class: YourRendererClass

Defining renderer services

In order to create new render service just provide definition for it with appropriate tag.

<service id="activity_stream.renderer_custom" class="%activity_stream.renderer_custom.class%">
    <argument type="service" id="router"/>
    <tag name="activity_stream.renderer"/>
</service>