eZ Community » Forums » eZ Publish 5 Platform » Calling eZ Find in closure - setting...

Calling eZ Find in closure - setting the language without legacy confs?

Calling eZ Find in closure - setting the language without legacy confs?

Wednesday 25 March 2015 3:43:09 pm - 1 reply

I'm calling eZ Find in a closure on a set of sites running a Symfony frontend. We plan to switch out legacy ez find to modern back end, but I'd keep any legacy confs, etc. to a minimum already today.

There are no legacy settings for these siteaccesses, so I'd need to specify the language / siteaccess in this closure. Is there any sensible way of injecting the current Symfony siteaccess languages to: https://github.com/ezsystems/ezfi...sses/ezfezpsolrquerybuilder.php#L543

I also thought of adding all the languages to settings/override/site.ini.append.php and adding another filter to get the language I want.

Maybe I'd just be better off adding the siteaccess specific configs... happy.gif Emoticon

Modified on Wednesday 25 March 2015 3:47:22 pm by Jani Tarvainen

Saturday 28 March 2015 2:20:16 pm

Hello there.

One thing you could do is A) wrap the callback in a dedicated service, that gets injected the legacy kernel b) inject the relevant language settings using dynamic settings. The documentation example actually uses languages as the example.

If when doing A, if you create an interface that you implement for the Callback based implementation, you can easily create a new implementation that uses the Repository feature when you decide to use it.

If you decide to take the shortcut, legacy bundles should make it easier to keep everything in the new stack.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from