Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Distribution Bundle Laravel Package

akuma/distribution-bundle

View on GitHub
Deep Wiki
Context7

AkumaDistributionBundle

Implements additional way to load bundles without any updates of application files.

Usage

Modify current kernel of application by extending (extends AkumaKernel) from Akuma\Bundle\DistributionBundle\AkumaKernel and result should be merged with parent result, like following:

class AppKernel extends AkumaKernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
        );

        if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
            ...
        }

        //Following should be replaced to suport list of bundles from AkumaKernel
        return parent::registerBundles($bundles);
    }

Add Resources/config/bundle.yml file to every bundle you want to be auto-registered within application's kernel:

bundle:
    class: 'Acme\Bundle\TestBundle\AcmeTestBundle'
    priority: -1
    kernel: true
    environment: ['test', 'prod']
    require:
        - {class: 'Acme\Bundle\OtherBundle\AcmeOtherBundle', kernel: true}

Where :

  • class - is a main class of Bundle
  • priority - is an integer value
  • kernel - indicates if bundle class require Kernel object as argument for constructor
  • environment - array of environment names to load bundle
  • require - an array of bundles to be loaded

Commands

List registered bundles

Command syntax is akuma:debug:bundle. Displays all registered bundles within application.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
althinect/enum-permission
andydefer/laravel-actions
aimeos/prisma
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor