Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 972 Bytes

installation.md

File metadata and controls

46 lines (36 loc) · 972 Bytes

Setting up the bundle

A) Add MarvelAPIBundle to your composer.json

{
    "require": {
        "octante/marvel-api-bundle": "1.0.*"
    }
}

B) Enable the bundle

Enable the bundle in the kernel:

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Octante\MarvelAPIBundle\OctanteMarvelAPIBundle(),
    );
}

C) Add a parameters.yml file in your application

You need to configure private and public keys in your parameters file. You can create the keys in marvel's developer page

parameters:
    marvel_public_key: your_public_key
    marvel_private_key: your_private_key

D) Add a config.yml file in your application

You need to add created parameters to your app/config/config.yml:

octante_marvel_api:
    public_key: "%marvel_public_key%"
    private_key: "%marvel_private_key%"