Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Latest commit

 

History

History
63 lines (44 loc) · 1.29 KB

File metadata and controls

63 lines (44 loc) · 1.29 KB

Installation

Step 1) Get the bundle

First you need to get a hold of this bundle. There are two ways of doing this:

Method a) Using composer

Add the following to your composer.json (see http://getcomposer.org/)

"require" :  {
    // ...
    "cleentfaar/docdata-orderapi-bundle": "1.0.*@dev"
}

Method b) Using submodules

Run the following commands to bring in the needed libraries as submodules.

git submodule add https://github.com/cleentfaar/CLDocDataOrderApiBundle.git vendor/bundles/CL/Bundle/DocDataOrderApiBundle

Step 2) Register the namespaces

If you installed the bundle by composer, use the created autoload.php (jump to step 3). Add the following two namespace entries to the registerNamespaces call in your autoloader:

<?php
// app/autoload.php
$loader->registerNamespaces(array(
    // ...
    'CL\Bundle' => __DIR__.'/../vendor/bundles',
    // ...
));

Step 3) Register the bundle

To start using the bundle, register it in your Kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    // ...
    $bundles = array(
        // ...
        new CL\Bundle\DocDataOrderApiBundle\CLDocDataOrderApiBundle(),
        // ...
    );
    // ...
}

Ready?

Check out the usage documentation!