algolia / algolia/search-bundle
Add support for doctrine/event-manager:^2
- Dominant language
- PHP
- Stars
- 193
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
- Symfony version: 6.2
- Algolia Search Bundle version: 6.0.1
### Description
I can't install `algolia/search-bundle` on an existing Symfony 6.2 application due to version conflicts. `algolia/search-bundle` requires `"doctrine/event-manager": "^1.1",` but other standard Doctrine packages require doctrine/event-manager `^2.0`
If I `composer require algolia/search-bundle` using the `--with-all-dependencies` flag, it installs successfully. The tree of dependencies for `doctrine/event-manager` is then:
```sh
$ ❯ composer depends doctrine/event-manager
algolia/search-bundle 6.0.1 requires doctrine/event-manager (^1.1)
doctrine/dbal 3.6.2 requires doctrine/event-manager (^1|^2)
doctrine/migrations 3.6.0 requires doctrine/event-manager (^1.2 || ^2.0)
doctrine/orm 2.14.3 requires doctrine/event-manager (^1.2 || ^2)
doctrine/persistence 3.1.4 requires doctrine/event-manager (^1 || ^2)
```
Contributor guide
Research direction
Start by locating the bundle's Composer dependency declaration for doctrine/event-manager and review the compatibility constraints shown in the issue. Verify the change by running Composer dependency resolution in a Symfony 6.2 application alongside the listed Doctrine packages, and confirm that the bundle installs without requiring --with-all-dependencies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, symfony
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100