Category: bundle

symfony/maker-bundle won’t install

I’m trying to install symfony/maker-bundle in a symfony project, so when I run the composer command composer require symfony/maker-bundle –dev it give me this error : [ComposerDownloaderTransportException] The “https://flex.symfony.com/versions.json” file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in…

Symfony 5 Bundle namespace autoload failed

I create a bundle like this <?php namespace CDCBasementBundleUtilBundle; use SymfonyComponentHttpKernelBundleBundle; class CDCUtilBundle extends Bundle {} and add composer.json file on root directory of my bundle folder, and put this in autoload “psr-4”: { “CDCBasementBundleUtilBundle”: “src/” }, the main class…

symfony api-platform overwrite JS/CSS of Bundles

I’m trying to customize the appearance of some pages provided by a bundle (api-platform). I can override the twig template by creating a <app>/templates/bundles/ApiPlatformBundle/SwaggerUi/index.html.twig file, but I’m not sure how I could do the same for css and javascript files….

Best practice for database connection via Doctrine in a Symfony Bundle

In my bundle i create a separate database connection and an EntityManager for it. Everything works fine, except those two things don’t show up in the development profiler. There is only the default EntityManager and the default connection. So basically…