Installation
Installation Using Symfony Flex
Symfony Flex is the new way to manage dependencies on Symfony 3.4 and higher applications. If your project already uses Symfony Flex, execute this command to download, register and configure the bundle automatically:
1
$ composer require stof/doctrine-extensions-bundle
That's all! You can skip the rest of this article.
Installation without Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
1
$ composer require stof/doctrine-extensions-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// app/AppKernel.php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
);
// ...
}
// ...
}
This work, including the code samples, is licensed under a
Creative Commons BY-SA 3.0 license.