2017 © Pedro Peláez
 

symfony-bundle dynamic-connection-bundle

Allows you to enable/disable bundles via the command line

image

sip/dynamic-connection-bundle

Allows you to enable/disable bundles via the command line

  • Sunday, May 12, 2013
  • by iljasuhinin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Dynamic enable bundles

Build Status, (*1)

Allows you to enable/disable bundles via the command line, (*2)

Installation

1. command to add the bundle to your composer.json and download package.

``` bash $ composer require "sip/dynamic-connection-bundle": "dev-master", (*3)


2. Configuration: ----------------- ``` yml # app/config/config.yml sip_dynamic_connection: # All Default configuration: # app_kernel_path: /AppKernelDynamic.php # config_path: /config/resources/dynamic.yml # routing_path: /config/routing_dynamic.yml

3. Include config file for dynamic configuration

``` yml, (*4)

app/config/config.yml

imports: - { resource: resources/dynamic.yml }, (*5)


4. Include routing file for dynamic routing ------------------------------------------- ``` yml # app/config/routing.yml _dynamic: resource: routing_dynamic.yml

4. Add files to configure and enable the plug-bundles

``` bash $ touch app/AppKernelDynamic.php $ touch app/config/resources/dynamic.yml $ touch app/config/routing_dynamic.yml, (*6)


5. Enable the bundle inside the kernel. --------------------------------------- ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( new SIP\DynamicConnectionBundle\SIPDynamicConnectionBundle() // If you wish to use SonataAdmin new Sonata\BlockBundle\SonataBlockBundle(), new Sonata\jQueryBundle\SonatajQueryBundle(), new Sonata\AdminBundle\SonataAdminBundle(), // Other bundles... ); include "AppKernelDynamic.php"; }

Read more about installation SonataAdminBundle, (*7)

6. Bundle settings in SonataAdmin backend:

bundle_settings, (*8)

The Versions

12/05 2013

dev-master

9999999-dev https://github.com/SIProject/SIPDynamicConnectionBundle

Allows you to enable/disable bundles via the command line

  Sources   Download

MIT

The Requires

 

dynamic sonataadmin bundles