-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bundle 'App' does not exist. #15
Comments
@vertisan you need to create a Bundle class inside your // src/AppBundle.php
namespace App;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AppBundle extends Bundle {
} and register this in your \App\AppBundle::class => ['all' => true], |
I just hit the same issue while trying to convert our project using the ongr bundle from 7 to this one, as 300+ deprecation errors per request is a bit ridiculous. It'd be nice if someone could implement this feature, some bundles already do it by asking for the name of the "bundle" to be "app" which is a reserved value and then just look at the src folder. Seems like all changes required are in the DocumentFinder.php file. |
Using AppBundle like mentioned here #15 (comment) can result in other issues like e.g. Doctrine mappings not working correctly in combination with bundle auto mapping active. I have now manually changed the argument for the document finder to include a the "AppBundle" only there, instead of using it with config/bundles.php that way it is only used/available for this bundle mappings. And I was also able to use Not a perfect solution though. |
Staring from Symfony 4, bundle conception has been rejected and is no longer used so how can I create mappings without it?
ongr_elasticsearch.yaml
services.yaml
BookController.php
Book.php
Without mapping I don't getting any results.
The text was updated successfully, but these errors were encountered: