GithubHelp home page GithubHelp logo

Comments (3)

pkly avatar pkly commented on July 22, 2024 1

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.

alexander-schranz avatar alexander-schranz commented on July 22, 2024

@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.

AndreasA avatar AndreasA commented on July 22, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.