Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 replacinggeophp.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
Comment | File | Size | Author |
---|---|---|---|
#3 | deprecate_geophp_module-2724943-3.patch | 6.64 KB | plopesc |
Comments
Comment #2
plopescComment #3
plopescHere is the patch I created for this task.
Comment #5
NetNerdy CreditAttribution: 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 CreditAttribution: NetNerdy commentedincluded...have seen it by code ;)
Comment #7
plopescPatch already pushed.
Thanks
Comment #9
davidsickmiller CreditAttribution: 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: