1. Installation

We assume you’re familiar with Composer and you have Composer installed globally.

Use the following command to add repository configuration to your composer.json.

composer config repositories.openjet-core         '{"type": "vcs", "reference": "master", "url": "git@gitlab.openjetlab.fr:openjet/core.git"}' && \
composer config repositories.openjet-gitlab-api   '{"type": "vcs", "reference": "master", "url": "git@gitlab.openjetlab.fr:openjet/gitlab-api.git"}' && \
composer config repositories.openjet-debug        '{"type": "vcs", "reference": "master", "url": "git@gitlab.openjetlab.fr:openjet/debug.git"}' && \
composer config repositories.openjet-debug-bundle '{"type": "vcs", "reference": "master", "url": "git@gitlab.openjetlab.fr:openjet/debug-bundle.git"}'

And use this command to add the bundle and download the package.

$ composer require openjet/debug-bundle

1.1. Adding required bundle to the kernel

You need to enable the bundle inside the kernel.

<?php

// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        new Openjet\Bundle\DebugBundle\OpenjetDebugBundle(),
    ];
}

1.2. Configuring bundle

Import required configuration.

# app/config/config.yml
imports:
    - { resource: '@OpenjetDebugBundle/Resources/config/app/config.yml' }

Congratulations! The bundle is now installed and ready to use.