Skip to content

Extends os2display with campaigns. Campaigns can force screens to only show the selected content for a given period, afterwards returning to the normal content.

License

Notifications You must be signed in to change notification settings

os2display/campaign-bundle

Repository files navigation

campaign-bundle

Extends os2display with campaigns.

Campaigns supply a new functionality for controlling content on the screens.

With campaigns a group of screens can be "taken over" for a given period of time with a given channel. After the period has expired the screen returns to the regular content.

Installation

Add the git repository to "repositories" in composer.json.

"repositories": {
    "os2display/campaign-bundle": {
      "type": "vcs",
      "url": "https://github.com/os2display/campaign-bundle"
    },
    ...
}

Require the bundle with composer.

composer require os2display/campaign-bundle

Enable the bundle in AppKernel.php, by adding Os2DisplayCampaignBundle to $bundles.

NB! This should be done after adding Os2Display/CoreBundle since, MiddlewareCommunications.php from CoreBundle is overridden in CampaignBundle.

new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new Os2Display\CampaignBundle\Os2DisplayCampaignBundle()

Enable timestampable and blameable in your configuration:

stof_doctrine_extensions:
    orm:
        default:
            timestampable: true
            blameable: true

About

Extends os2display with campaigns. Campaigns can force screens to only show the selected content for a given period, afterwards returning to the normal content.

Resources

License

Stars

Watchers

Forks

Packages

No packages published