sip/dynamic-connection-bundle

Allows you to enable/disable bundles via the command line

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/sip/dynamic-connection-bundle

dev-master 2013-05-12 18:00 UTC

This package is not auto-updated.

Last update: 2025-10-06 19:54:08 UTC


README

Build Status

Allows you to enable/disable bundles via the command line

Installation

  1. command to add the bundle to your composer.json and download package.
$ composer require "sip/dynamic-connection-bundle": "dev-master"
  1. Configuration:
# 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
  1. Include config file for dynamic configuration
# app/config/config.yml
imports:
    - { resource: resources/dynamic.yml }
  1. Include routing file for dynamic routing
# app/config/routing.yml
_dynamic:
    resource: routing_dynamic.yml
  1. Add files to configure and enable the plug-bundles
$ touch app/AppKernelDynamic.php
$ touch app/config/resources/dynamic.yml
$ touch app/config/routing_dynamic.yml
  1. Enable the bundle inside the kernel.
<?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

  1. Bundle settings in SonataAdmin backend:

bundle_settings