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

symfony 4 support #186

Open
Nemo64 opened this issue Aug 7, 2018 · 1 comment
Open

symfony 4 support #186

Nemo64 opened this issue Aug 7, 2018 · 1 comment

Comments

@Nemo64
Copy link

Nemo64 commented Aug 7, 2018

I'm not sure if im just overlooking something but I tried to use this bundle with symfony 4.1.

I added the bundle like in the new bundles.php like this:

    FS\SolrBundle\FSSolrBundle::class => ['all' => true],

And then: no commands. So I tried to manually add them in the service.yml by just blindly adding the command folder to autowire:

FS\SolrBundle\Command\:
    resource: '../vendor/floriansemm/solr-bundle/FS/SolrBundle/Command/*Command.php'

worked, now i have commands... but they don't work. All services are private by default since symfony 3.4 so just to check I made all services by default public within your bundle by modifying services.xml

<services>
    <defaults public="true" />
    ...
</services>

And horray, it seems to do something, i can now use solr:index:popuplate... but none of my fields are populated.

@entepe85
Copy link

I'm also facing the issue of the index being not populated even though the bundle is installed and the command solr:index:populate does not throw an error. (Using Symfony 4.4)

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

No branches or pull requests

2 participants