PHP code example of carlinhus / database-config-bundle

1. Go to this page and download the library: Download carlinhus/database-config-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

carlinhus / database-config-bundle example snippets


public function registerBundles()
{
        new Carlinhus\DatabaseConfigBundle\CarlinhusDatabaseConfigBundle(),
}

use Carlinhus\DatabaseConfigBundle\DependencyInjection\Compiler\ContainerBuilder;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
...
protected function getContainerBuilder()
{
        return new ContainerBuilder(new ParameterBag($this->getKernelParameters()));
}