Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 1.17 KB

installation.md

File metadata and controls

75 lines (56 loc) · 1.17 KB

Installation

Symfony >= 2.1.*

Require the bundle in your composer.json file (You should choose the tag/branch that fits to your needs):

{
    "require": {
        "widop/http-adapter-bundle": "*",
    }
}

Register the bundle:

// app/AppKernel.php

public function registerBundles()
{
    return array(
        new Widop\HttpAdapterBundle\WidopHttpAdapterBundle(),
        // ...
    );
}

Install the bundle:

$ composer update

Symfony <= 2.0.*

Add Wid'op Http Adapter bundle (You should choose the tag/branch that fits to your needs):

[WidopHttpAdapterBundle]
    git=http://github.com/widop/WidopHttpAdapterBundle.git
    target=bundles/Widop/HttpAdapterBundle
    version=1.0.0

Autoload the Wid'op Http Adapter bundle namespace:

// app/autoload.php

$loader->registerNamespaces(array(
    'Widop\\HttpAdapterBundle' => __DIR__.'/../vendor/bundles',
    // ...
);

Register the bundle:

// app/AppKernel.php

public function registerBundles()
{
    return array(
        new Widop\HttpAdapterBundle\WidopHttpAdapterBundle(),
        // ...
    );
}

Run the vendors script:

$ php bin/vendors install