Skip to content

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

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

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

Conversation

@lpeabody

@lpeabody lpeabody commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Reorganizes the polymer-pantheon-drupal extension to a top-level src/ layout, splits the coding-standards config (PSR-12 vs Drupal) with a GrumPHP pre-commit hook, and removes installer configuration that is no longer needed.

Refs PWT-113, PWT-115.

What's in here

  • Top-level reorganization (4cded5b, 785b4c4): move classes from src/Polymer/... to src/...; split phpcs.xml.dist into phpcs-non-drupal.xml.dist (PSR-12) and phpcs-drupal.xml.dist; add a GrumPHP pre-commit hook; coding-standards fixes across commands, hooks, templates, and event subscribers.
  • Remove unused installer config (b856fec): drop extra.installer-name and the mnsami/composer-custom-directory-installer / oomphinc/composer-installers-extender allow-plugins entries. Polymer core discovers plugins by package type and installs them to vendor/ by default, so no installer machinery is needed. (oomphinc/composer-installers-extender was archived upstream.)

🤖 Generated with Claude Code

DDEV User and others added 3 commits October 2, 2025 19:41
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 codebase by updating namespaces to DigitalPolygon\Polymer\polymer_pantheon_drupal, updating dependencies in composer.json, and introducing GrumPHP configurations along with git hooks and PHP CodeSniffer rulesets. Feedback on these changes highlights three key issues: the PSR-4 autoloading configuration for the new namespace was accidentally removed from composer.json and must be restored, and the git hooks (pre-commit and commit-msg) unconditionally prefix commands with ddev exec -- when IS_DDEV_PROJECT is empty, which will break commits for non-DDEV users and should instead check for DDEV's availability.

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 grumphp/hooks/pre-commit Outdated
Comment thread grumphp/hooks/commit-msg Outdated
lpeabody and others added 2 commits June 2, 2026 09:31
Only prefix git hook commands with `ddev exec --` when not in a DDEV container AND a .ddev directory and the ddev binary are present, so commits do not break for non-DDEV developers.

Refs PWT-115.

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

The reorganization landed on polymer-drupal 0.x (PR #28), so point at 0.x-dev rather than the dev-feature/refactor-organization branch, which would break once that branch is removed.

Refs PWT-115.

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