Skip to content

Reorganize to top-level src/ layout; remove unused installer config#28

Merged
lpeabody merged 7 commits into
0.xfrom
feature/refactor-organization
Jun 2, 2026
Merged

Reorganize to top-level src/ layout; remove unused installer config#28
lpeabody merged 7 commits into
0.xfrom
feature/refactor-organization

Conversation

@lpeabody

@lpeabody lpeabody commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Reorganizes the polymer-drupal extension to a top-level src/ layout (moving classes out of the src/Polymer/ subdirectory), applies coding-standards fixes, and removes installer configuration that is no longer needed.

Refs PWT-113, PWT-115.

What's in here

  • Top-level reorganization (cff98e9, 7f09605, 6bc7844): move plugin classes from src/Polymer/... to src/..., with coding-standards and code fixes across commands, hooks, tasks, the service provider, and event subscribers.
  • Remove unused installer config (bf39c65): drop extra.installer-name and the mnsami/composer-custom-directory-installer / oomphinc/composer-installers-extender allow-plugins entries. Polymer core now discovers plugins by package type and installs them to vendor/ by default, so this package needs no installer machinery. (oomphinc/composer-installers-extender was also archived upstream.)

🤖 Generated with Claude Code

DDEV User and others added 4 commits October 2, 2025 19:37
Polymer plugins are discovered by package type and installed to vendor by default, so the custom installer-name and the custom-directory-installer / installers-extender allow-plugins entries are no longer needed.

Refs PWT-115.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request reorganizes the project's namespace from DigitalPolygon\PolymerDrupal to DigitalPolygon\Polymer\polymer_drupal, updates dependencies, and refactors configuration and settings files to support the new structure. While these changes align the project with the updated organization, several critical issues need to be addressed. Specifically, the PSR-4 autoloading mapping for the new namespace was omitted in composer.json, which will cause runtime class-not-found errors. Additionally, a logic change in settings/db.settings.php causes default DDEV database settings to unconditionally overwrite custom configurations. Other issues include outdated namespace references in SetupCommands.php, incorrect PHPStan constructor paths, and minor indentation inconsistencies in the settings files that violate coding standards.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread composer.json
Comment thread settings/db.settings.php
Comment thread src/Plugin/Commands/SetupCommands.php
Comment thread phpstan.neon Outdated
Comment thread settings/default.global.settings.php
Comment thread settings/default.includes.settings.php
lpeabody and others added 2 commits June 2, 2026 09:31
- db.settings.php: only apply the default DDEV database config when settings.ddev.php was not loaded (it was unconditionally overwriting DDEV/multisite settings).
- SetupCommands: emit the new \\DigitalPolygon\\Polymer\\polymer_drupal\\VendorAssets namespace into generated settings (the old \\DigitalPolygon\\PolymerDrupal reference no longer exists).
- phpstan.neon: point additionalConstructors at the polymer_drupal event classes instead of the Core namespace.
- settings templates: fix require/phpcs:ignore indentation for the Drupal coding standard.

Refs PWT-115.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…branch

The reorganization landed on polymer 0.x (PR #76) and the feature/refactor-organization branch was deleted, so the dev-feature/refactor-organization constraint no longer resolves and CI composer install fails. Point at 0.x-dev.

Refs PWT-115.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The reorg split phpcs.xml.dist into phpcs-non-drupal.xml.dist (PSR-12, src) and phpcs-drupal.xml.dist (Drupal, settings), but the composer cs script still ran bare `phpcs`, which finds no config and errors with "You must supply at least one file or directory". Point it at both standards.

Refs PWT-115.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lpeabody
lpeabody merged commit ebfb15a into 0.x Jun 2, 2026
3 checks passed
@lpeabody
lpeabody deleted the feature/refactor-organization branch June 2, 2026 15:16
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.

1 participant