Skip to content

DocRoms/BUNDLE_CNC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cncBundle

This Bundle help developers for integrate their movies to CNC.

How to install ?

composer.json

Add this line :
"docroms/cnc-bundle": "dev-master",

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

AppKernel.php

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

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);

About

Bundle For Add movie list to the French CNC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages