cosmologist/symfony-common-bundle
fetchAllIndexed, transaction events). These are not core Symfony features, so adoption should be feature-specific rather than architectural.debug:container, debug:router).ExtraConnection wrapper adds transaction hooks (postBeginTransaction, postCommit, postRollback) and fetchAllIndexed.| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Deprecated Symfony | High | Isolate in a legacy module or fork. |
| Doctrine API Drift | Medium | Test against Doctrine 2.10+ compatibility. |
| XDebug Deprecation | Low | Replace with Symfony DebugBundle. |
| No Active Maintenance | High | Prepare for custom patches or abandonment. |
| YAML Config Rigidity | Medium | Use Symfony’s PHP config instead. |
config.yml support).Connection methods may differ).return types).autoconfigure:dump-reference to bypass auto-configuration.RunnerCommand with Symfony DebugBundle + XDebug.ExtraConnection with Doctrine event subscribers or custom query builders.config/packages/doctrine.yaml).# DEPRECATED (Symfony 4.x only)
doctrine:
dbal:
connections:
default:
wrapper_class: Cosmologist\Bundle\SymfonyCommonBundle\Doctrine\ExtraConnection
→ Modern Alternative:
// config/packages/doctrine.yaml
doctrine:
dbal:
connections:
default:
# Use a custom event subscriber instead
event_subscribers: [App\EventListener\TransactionLogger]
| Component | Compatibility Risk | Workaround |
|---|---|---|
| Symfony 5.4+ | High | Fork or use Symfony 4.x container. |
| Doctrine 2.10+ | Medium | Test ExtraConnection methods. |
| PHP 8.0+ | Medium | Check for strict_types support. |
| Twig | Low | Likely compatible (no direct usage). |
| XDebug | Low | Replace with native tools. |
RunnerCommand with Symfony DebugBundle or VS Code PHP Debug.ExtraConnection in staging.fetchAllIndexed is overused.
postCommit, etc.) could add latency in high-throughput apps.| Failure Scenario | Impact | Recovery Plan |
|---|---|---|
| Bundle breaks in Symfony 5.4+ | High (if critical) | Rollback or reimplement. |
| Doctrine API changes | Medium | Patch locally or switch to events. |
| XDebug deprecation | Low | Migrate to Symfony DebugBundle. |
| No security updates | High (if DBAL used) | Audit for vulnerabilities; replace. |
How can I help you explore Laravel packages today?