Skip to content
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

change default source directory to /src/Document #958

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

change default source directory to /src/Document #958

wants to merge 1 commit into from

Conversation

mjvanmiddelaar
Copy link

@mjvanmiddelaar mjvanmiddelaar commented Jul 27, 2020

ONGR\ElasticsearchBundle\DependencyInjection\Compiler\MappingPass autoloads literally all classes in the default source directory, which is /src

It cannot be assumed all classes in /src abide by the PSR-0 standard or have autoloading setup in a different way. For instance, Doctrine Migrations after default SF5 setup, will be placed in /src/Migrations and they cannot be autoloaded by default.

Since the README.md suggests to place new Document classes in /src/Document, it is my proposal to make /src/Document the default source directory for the ElasticsearchBundle so developers can install this bundle on new Symfony 5 application without running into autoloading issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant