Skip to content

change default source directory to /src/Document - #958

Open
mjvanmiddelaar wants to merge 1 commit into
ongr-io:masterfrom
mjvanmiddelaar:master
Open

change default source directory to /src/Document#958
mjvanmiddelaar wants to merge 1 commit into
ongr-io:masterfrom
mjvanmiddelaar:master

Conversation

@mjvanmiddelaar

@mjvanmiddelaar mjvanmiddelaar commented Jul 27, 2020

Copy link
Copy Markdown

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.

1 participant