Problem/Motivation
New Drupal8 workflow and archtecture encourages to use composer to manage external dependencies. Geofield module is currently depending on GeoPHP module, which is just a wrapper for the GeoPHP library.
The aim of this issue is get rid of the dependency on GeoPHP module and use composer.json file to download and autoload GeoPHP classes.
This make things easier, more sustainable and more likely the new D8 standards.
Proposed resolution
- Add a composer.json file declaring dependency on GeoPHP library.
- Remove dependency on GeoPHP module.
- Create new
geofild.geophp service replacing geophp.geophp service declared in GeoPHP module.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
New geofield.geophp service declared in this module
Comments
Comment #2
plopescComment #3
plopescHere is the patch I created for this task.
Comment #5
NetNerdy commentedhi plopesc,
thank you very much for your works by this important module!
is the patch #3 already included by current -dev?
version that's mean:
+Last updated: May 13, 2016 - 20:33
Last packaged version: 8.x-1.0-alpha1+18-dev
thank you for clearing ;)
Comment #6
NetNerdy commentedincluded...have seen it by code ;)
Comment #7
plopescPatch already pushed.
Thanks
Comment #9
davidsickmiller commentedIn case anyone has the same problem as me, installing this way seems to no longer work automatically (at least with Drush 8.1.12):
Instead, perform the download using Composer, which takes care of the geophp dependencies, before enabling the module: