modera/module-bundle

Adds support for dynamical bundles installation.

Installs: 5 063

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 6

Forks: 1

Open Issues: 0

Type:symfony-bundle

v3.1.0 2021-09-05 19:15 UTC

README

Makes it possible to dynamically install and inject new bundles to your AppKernel class when a new bundle is installed by composer. To make your bundle susceptible to automatic kernel installation please add similar lines to your composer.json file:

{
    "extra": {
        "modera-module": {
            "register-bundle": "MyCompany\\HelloWorldBundle\\MyCompanyHelloWorldBundle"
        }
    }
}

Installation

Step 1: Download the Bundle

composer require modera/module-bundle:4.x-dev

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

This bundle should be automatically enabled by Flex. In case you don't use Flex, you'll need to manually enable the bundle by adding the following line in the config/bundles.php file of your project:

<?php
// config/bundles.php

return [
    // ...
    Modera\ModuleBundle\ModeraModuleBundle::class => ['all' => true],
];

Licensing

This bundle is under the MIT license. See the complete license in the bundle: Resources/meta/LICENSE