Skip to content

refactor: replace Symfony YAML with plain PHP for maps config#87

Merged
techtimo merged 3 commits into
mainfrom
refactor/maps-php-config
May 6, 2026
Merged

refactor: replace Symfony YAML with plain PHP for maps config#87
techtimo merged 3 commits into
mainfrom
refactor/maps-php-config

Conversation

@techtimo
Copy link
Copy Markdown
Owner

@techtimo techtimo commented May 6, 2026

Summary

  • Converts config/maps.yaml to config/maps.php (plain PHP array loaded with require)
  • Removes symfony/yaml from composer.json and the Strauss vendor-prefix configuration entirely
  • Removes the vendor-prefixed directory from the zip and the composer install step from plugin-zip
  • Fixes a fatal Class "Spotmap\Symfony\Component\Yaml\Yaml" not found crash on the production server caused by a partial Strauss run failing on a chmod call inside Docker

Test plan

  • Verify the admin settings page loads (maps/overlays dropdowns populate correctly)
  • Verify npm run plugin-zip completes without running composer
  • Verify the deployed zip contains config/maps.php and no vendor-prefixed/ directory

Convert config/maps.yaml to config/maps.php (plain PHP array) and load
it with require instead of Symfony YAML::parseFile. This removes the
symfony/yaml Composer dependency and the Strauss vendor-prefix step
entirely, fixing a fatal autoloader crash on the production server and
simplifying the build (plugin-zip no longer needs composer install).
@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@techtimo techtimo merged commit 80db3f3 into main May 6, 2026
5 checks passed
@techtimo techtimo deleted the refactor/maps-php-config branch May 6, 2026 13:39
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