If we generated a bundle, it will be located in the [src] folder.

How does symfony load anything from this folder?

I looked at the autoloaders, but something did not find any mention of this folder anywhere ('src').

    1 answer 1

    Symfony3 itself Symfony3 not load classes; the generated autoloader composer'а does this, you can find the mention of the src folder in the autoload directive in the composer.json file

    For example, for a standard installation, it says "psr-4": { "": "src/" }, , therefore your typical bundle will be located on the src/AppBundle/AppBundle.php , and the full class name will be AppBundle\AppBundle .