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: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
This package is not auto-updated.
Last update: 2025-01-13 15:56:24 UTC
README
Allows you to enable/disable bundles via the command line
Installation
- command to add the bundle to your composer.json and download package.
$ composer require "sip/dynamic-connection-bundle": "dev-master"
- 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
- Include config file for dynamic configuration
# app/config/config.yml imports: - { resource: resources/dynamic.yml }
- Include routing file for dynamic routing
# app/config/routing.yml _dynamic: resource: routing_dynamic.yml
- 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
- 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
- Bundle settings in SonataAdmin backend: