2017 © Pedro Peláez
 

symfony-bundle cnc-bundle

Symfony Bundle for CNC movies integration

image

docroms/cnc-bundle

Symfony Bundle for CNC movies integration

  • Thursday, November 10, 2016
  • by docRoms
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

cncBundle

This Bundle help developers for integrate their movies to CNC., (*1)

How to install ?

composer.json

Add this line :
"docroms/cnc-bundle": "dev-master",
, (*2)

config.json

Add this lines :
cnc:
    mode: recette # or production
    production_oauth_url: http://vad.cnc.fr
    production_consumer_key: YourProductionConsumerKey
    production_consumer_secret: YourProductionConsumerSecret
    production_access_token: YourProductionAccessToken
    production_access_token_secret : YourProductionAccessTokenSecret
    recette_oauth_url: http://int-cncvod.integra.fr
    recette_consumer_key: YourRecetteConsumerKey
    recette_consumer_secret: YourRecetteConsumerSecret
    recette_access_token: YourRecetteAccessToken
    recette_access_token_secret : YourRecetteAccessTokenSecret
, (*3)

AppKernel.php

Add this lines on the Bundles array:
new \docroms\CncBundle\CncBundle(), (*4)

How to use it?

On your controller :

You can just get the object (for send all movies to the CNC) like that :
    $editor = $this->get('cnc')
    ->getNewOeuvresByEditor();


And send this object like this for send your movie list to the CNC:
    $result = $this->get('cnc')
    ->SendToCnc($editor);


After, you can get your movie list FROM the CNC like that:
    $result = $this->get('cnc')
    ->GetFromCnc($editor);
, (*5)

The Versions

10/11 2016

dev-master

9999999-dev

Symfony Bundle for CNC movies integration

  Sources   Download

MIT

The Requires

 

cnc