PHP code example of sidus / doctrine-debug-bundle
1. Go to this page and download the library: Download sidus/doctrine-debug-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/ */
sidus / doctrine-debug-bundle example snippets
use Symfony\Component\HttpKernel\Kernel;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
// ...
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
// ...
if ('dev' === $this->getEnvironment()) {
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
$bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle();
// HERE!
$bundles[] = new Sidus\DoctrineDebugBundle\SidusDoctrineDebugBundle();
}
}
return $bundles;
}
// ...
}