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-resource '{"type": "vcs", "reference": "master", "url": "git@gitlab.openjetlab.fr:openjet/resource.git"}' && \
composer config repositories.openjet-core '{"type": "vcs", "reference": "master", "url": "git@gitlab.openjetlab.fr:openjet/core.git"}' && \
composer config repositories.openjet-core-bundle '{"type": "vcs", "reference": "master", "url": "git@gitlab.openjetlab.fr:openjet/core-bundle.git"}'
And use this command to add the bundle and download the package.
$ composer require openjet/core-bundle
1.1. Adding required bundles to the kernel¶
You need to enable the bundle inside the kernel.
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = [
new Sonata\IntlBundle\SonataIntlBundle(),
new Openjet\Bundle\CoreBundle\OpenjetCoreBundle(),
];
}
Congratulations! The bundle is now installed and ready to use.