dev-master
9999999-dev https://github.com/SIProject/SIPDynamicConnectionBundleAllows you to enable/disable bundles via the command line
MIT
The Requires
dynamic sonataadmin bundles
Allows you to enable/disable bundles via the command line
Allows you to enable/disable bundles via the command line, (*2)
``` 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
``` yml, (*4)
imports: - { resource: resources/dynamic.yml }, (*5)
4. Include routing file for dynamic routing ------------------------------------------- ``` yml # app/config/routing.yml _dynamic: resource: routing_dynamic.yml
``` 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)
, (*8)
Allows you to enable/disable bundles via the command line
MIT
dynamic sonataadmin bundles