alengo/sulu-media-extra-bundle
Sulu CMS media utilities: sync @2x crops to base formats automatically, generate image-formats.xml entries from YAML, backfill existing @2x format options, and rename media with dry-run support.
MediaCropModifiedEvent, me_format_options), preserving native integration with crops, formats, and storage workflows.bundles.php remains the only required step.@2x crop sync still works via MediaCropModifiedEvent — no invasive changes.generate, duplicate, rename) are unchanged and remain self-contained, suitable for post-deployment execution.composer.lock pins the correct branch on first install/upgrade to avoid silently jumping across supported Symfony majors.~3.0 dependency. With 1.1.0, Sulu 3.1 is now explicitly supported, which reduces the risk of minor-version drift blocking upgrades within the 3.x line. Sulu 4.x remains untested/unsupported and continues to be a future breakpoint.composer.json allows Symfony 8, your project’s PHP runtime, extensions, and transitive dependencies must satisfy that baseline. This is the main new integration risk and should be validated before merge.rename command assumes filesystem storage; cloud adapters (S3, etc.) still require customization.image-formats.xml generation still relies on strict schemas.rename --dry-run remains read-only; locale edge cases still require manual verification.rename behavior on the new baseline.image-formats.xml and crop settings?rename still mutates storage + database — confirm backups are in place for rollback.--locale behavior.@2x crop sync integrates via Symfony events.composer.json and CHANGELOG between the previously assessed version and 1.1.0.image-formats.xml and crop settings; back up media storage and the me_format_options table.composer.json; run composer update alengo/media-bundle.bin/console cache:clear and bin/console debug:container to confirm services register cleanly on the new framework version.composer.json and register the bundle in bundles.php.alengo:media:image-format-options:duplicate to backfill existing @2x crops (unchanged).image-formats.xml via alengo:media:image-formats:generate.@2x crop sync via the event subscriber on the new Symfony/Sulu combination.rename command in staging; re-check locale behavior on the new baseline.media.rename.handler) as needed.sulu/media-bundle and any custom media extensions, particularly on Symfony 8.1 (transitive dependency friction is the most likely failure point).| Phase | Task | Priority |
|---|---|---|
| Discovery | Read CHANGELOG/composer.json diff for 1.1.0; confirm PHP floor and version matrix. |
Critical |
| Environment | Verify runtime meets the target Symfony baseline (PHP version, extensions). | Critical |
| Installation | Composer + bundle registration (or upgrade). | Medium |
| Data Prep | Backup media + DB; run duplicate command. |
High |
| Format Setup | Generate/update image-formats.xml. |
High |
| Testing | Validate @2x sync, rename command, and edge cases on new baseline. |
Critical |
| Rollout | Deploy to staging then production with monitoring. | High |
| Post-Launch | Monitor performance and version-specific issues for 1–2 sprints. | Medium |
image-formats.yaml requires manual updates for new formats.monolog handlers for crop-sync events, command execution, and rename operations.@2x sync issues: Inspect MediaCropModifiedEvent listeners and me_format_options.subVersion increments.@2x crop sync is minimal if crops are infrequent; rename is I/O-bound; format generation is CPU-light. Re-benchmark on Symfony 8.1 if you upgrade the framework, since event dispatch cost can shift between majors.| Scenario | Impact | Mitigation |
|---|---|---|
| PHP/Symfony baseline mismatch | Bundle won’t install or boot | Validate composer.json requirements before upgrade. |
Corrupted image-formats.xml |
Broken media rendering | Backup XML before generation. |
@2x crop sync conflict |
Inconsistent crop regions | Validate me_format_options post-deploy. |
| Rename command storage failure | Orphaned media entries | Use --dry-run; monitor logs. |
| YAML schema errors | Partial format generation | Validate YAML before running commands. |
| Symfony 8.1 deprecations / service compile errors | Container boot failure | Smoke-test full framework boot in staging. |
| Sulu 4.x upgrade incompatibility | Bundle breaks | Stay on 3.0/3.1; track upstream. |
@2x crop consistency benefits.How can I help you explore Laravel packages today?