Skip to content

Conversation

@julienbourdeau
Copy link
Contributor

Q A
Bug fix? yes
New feature? yes
BC breaks? no
Related Issue Fix #241
Need Doc update yes/no

Describe your change

algolia_client service (API Client class) is now lazy.

What problem is this fixing?

Avoid error message if Algolia env variables aren't defined when doing other operations, not related to Algolia (like emptying cache).

See #241, #199

composer.json Outdated
"symfony/property-access": "^3.4.0 || ^4.0.0",
"symfony/filesystem": "^3.4.0 || ^4.0.0"
"symfony/filesystem": "^3.4.0 || ^4.0.0",
"ocramius/proxy-manager": "*",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, it's left to the user to include these packages if they want to use lazy functionality. I would not recommend including them in a vendor package, even less so without a useful version constraint.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @alcaeus 👋 , thanks for reviewing.
I didn't see it this way, but that's even better. I'll move them to require-dev and add a note in the doc.

@julienbourdeau julienbourdeau merged commit ade1786 into master Aug 28, 2018
@julienbourdeau julienbourdeau deleted the feat/lazy-client branch August 28, 2018 08:43
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.

Rewrite subscriber to Listener, and add lazy

4 participants