Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Manage multiple descriptions of PrestaShop version in code #32

Closed
mickaelandrieu opened this issue Jun 6, 2018 · 2 comments
Closed

Comments

@mickaelandrieu
Copy link
Contributor

We sometimes need PrestaShop code to act according to the version of the Shop.

This can be for addons API, some iframes or retrieve Localisation packs.

Currently, we end up with multiples helpers functions everywhere in the code.

It's time to extract a utility class, and declare it as a service so we can unit test it and rely on it everywhere.

WDYT?

@PierreRambaud
Copy link

Agree, service FTW!

@mickaelandrieu
Copy link
Contributor Author

Closed by PrestaShop/PrestaShop#9174

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants