Comments (3)
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.
I could probably work on this if you're unwilling to
from elasticsearchbundle.
@vertisan you need to create a Bundle class inside your src
folder else the bundle will not work:
// src/AppBundle.php
namespace App;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AppBundle extends Bundle {
}
and register this in your config/bundles.php
.
\App\AppBundle::class => ['all' => true],
from elasticsearchbundle.
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 App
as namespace and the class name can be anything as long as it is directly in the src
folder.
Not a perfect solution though.
from elasticsearchbundle.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearchbundle.