2017 © Pedro Peláez
 

symfony-bundle distribution-bundle

image

akuma/distribution-bundle

  • Tuesday, August 8, 2017
  • by inri13666
  • Repository
  • 1 Watchers
  • 1 Stars
  • 564 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

AkumaDistributionBundle

Implements additional way to load bundles without any updates of application files., (*1)

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: ``` php class AppKernel extends AkumaKernel { public function registerBundles() { $bundles = array( ... );, (*2)

    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: ``` yml 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, (*3)

Commands

List registered bundles

Command syntax is akuma:debug:bundle. Displays all registered bundles within application., (*4)

The Versions

08/08 2017

dev-ticket/installation

dev-ticket/installation http://bundles.akuma.in/distribution

  Sources   Download

WTFPL

The Requires

 

25/06 2017

dev-master

9999999-dev http://bundles.akuma.in/distribution

  Sources   Download

WTFPL

The Requires

 

25/06 2017
19/05 2017
14/05 2017
09/05 2017
09/05 2017