Category: psr-4

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…