I'm in the process of upgrading a project from Symfony 2 to Symfony 4. As per the recommendation from Symfony, I no longer use AppBundle, instead all the code is directly under src/.
My question is how should I configure the manager when I'm no longer using AppBundle, if it is possible? I'm using latest stable version 5.2.4 of ongr-elasticsearch.
My config is below. In the mappings section I need to put a bundle name. Is there some way to get around this?
ongr_elasticsearch:
managers:
default:
index:
hosts:
- "%elasticsearch_host%:%elasticsearch_port%"
index_name: "%database_name%"
mappings:
- AppBundle
bulk_size: 300