/lib fold not using PSR-0 correctly.

Created on 24 May 2023, about 1 year ago
Updated 28 May 2023, about 1 year ago

Problem/Motivation

Since the deprecation of service_container, openlayers has put lots of classes into its `lib` folder. This folder is supposed to follow PSR-0 standards, but it does not.

If you were to the composer autoloader, and register the lib folder as a PSR-0 folder, openlayers does not work. This is because classes under the OpenlayersDrupal namespace are in the Drupal folder, instead of a folder called OpenlayersDrupal.

A quirk in registry_autoload module (which seems to basically ignore the folder structure once it has detected each file) means that most sites will still work, however it is still the case the Openlayers is not correctly following the PSR-0 rules in it's lib folder.

Proposed resolution

Rename the following directories:

  1. lib/Drupal => lib/OpenlayersDrupal
  2. lib/Psr => lib/OpenlayersPsr
  3. lib/Symfony => lib/OpenlayersSymfony

User interface changes

None

API changes

None

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom rlmumford Manchester

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024