public function registerBundles()
    {
        $bundles = [
            // Symfony standard bundles
            new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new \Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new \Symfony\Bundle\TwigBundle\TwigBundle(),
            new \Symfony\Bundle\MonologBundle\MonologBundle(),
            new \Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
            new \Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
            new \Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),

            // Added vendor bundles
            new \APY\DataGridBundle\APYDataGridBundle(),
            new \Bazinga\Bundle\JsTranslationBundle\BazingaJsTranslationBundle(),
            new \Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle(),
            new \Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
            new \FOS\JsRoutingBundle\FOSJsRoutingBundle(),
            new \FOS\RestBundle\FOSRestBundle(),
            new \FOS\UserBundle\FOSUserBundle(),
            new \JMS\SerializerBundle\JMSSerializerBundle(),
            new \Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(),
            new \Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle(),
            new \Lexik\Bundle\TranslationBundle\LexikTranslationBundle(),
            new \Liip\ImagineBundle\LiipImagineBundle(),
            new \Limenius\LiformBundle\LimeniusLiformBundle(),
            new \Nelmio\ApiDocBundle\NelmioApiDocBundle(),
            new \Nelmio\CorsBundle\NelmioCorsBundle(),
            new \Scheb\TwoFactorBundle\SchebTwoFactorBundle(),
            new \Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),

            // Opifer bundles
            new \Opifer\CmsBundle\OpiferCmsBundle(),
            new \Opifer\ContentBundle\OpiferContentBundle(),
            new \Opifer\EavBundle\OpiferEavBundle(),
            new \Opifer\FormBundle\OpiferFormBundle(),
            new \Opifer\FormBlockBundle\OpiferFormBlockBundle(),
            new \Opifer\MediaBundle\OpiferMediaBundle(),
            new \Opifer\RedirectBundle\OpiferRedirectBundle(),
            new \Opifer\ReviewBundle\OpiferReviewBundle(),
            new \Opifer\MailingListBundle\OpiferMailingListBundle(),
            new \Opifer\Revisions\OpiferRevisionsBundle(),
            new \Opifer\BootstrapBlockBundle\OpiferBootstrapBlockBundle(),
        ];

        if (in_array($this->getEnvironment(), ['dev', 'test'])) {
            $bundles[] = new \Symfony\Bundle\DebugBundle\DebugBundle();
            $bundles[] = new \Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
            $bundles[] = new \Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
            $bundles[] = new \Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
        }

        return $bundles;
    }