Skip to content

Installation

To install the JoliMediaBundle, you need to follow these steps:

  1. Install the bundle using Composer:
$ composer require jolicode/media-bundle
  1. Register the bundle in your Symfony application. If you are using Symfony Flex, this should be done automatically. If not, add the following line to your config/bundles.php file:

    return [
        // ...
        JoliCode\MediaBundle\JoliMediaBundle::class => ['all' => true],
    ];
  2. Install the software dependencies

  3. Configure the bundle according to your needs. You can find the configuration options in the Configuration section of the documentation.

Additionally, define the routes for the media library in your routing configuration:

# filepath: config/routes/joli_media.yaml
_joli_media:
    resource: "@JoliMediaBundle/config/routes.php"