Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
1. Create a directory for bundles (for example, bundles as suggested by Maxim Fedorov )
2. Create a directory for the bundle. For example, bundles/AcmeBundle
3. In composer.json add:
"autoload": {
"psr-4": {
"App\\": "src/",
"AcmeBundle\\": "bundles/AcmeBundle/"
},
}
<?php
namespace AcmeBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AcmeBundle extends Bundle
{
}
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
AcmeBundle\AcmeBundle::class => ['all' => true],
];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question