Make `doctrine/dbal` an optional or suggested package
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Review composer.json, services.yaml, OpenConextMonitorBundle.php, and DoctrineConnectionHealthCheck.php to compare the proposed ways of making doctrine/dbal optional. Start by tracing service resource discovery and bundle registration without the package installed. Done means projects without a database no longer install doctrine/dbal and do not encounter autoloading or registration errors.
Written by the indexing model from the issue text.
Description
Currently, when using this bundle, it adds a composer dependency, doctrine/dbal. However, some projects, like stepup-azuremfa, do not use a database.
But the monitor bundle causes doctrine/dbal to be installed in those projects.
This is not really a problem, as the connection is optional in the DoctrineConnectionHealthCheck.
if ($this->connection === null) {
But it would be nice to not packages without reason.
Possible solution:
- Move doctrine/dbal from require to suggest in composer.json.
- Exclude DoctrineConnectionHealthCheck.php from resource discovery in services.yaml to prevent autoloading errors?
- Conditionally register DoctrineConnectionHealthCheck in OpenConextMonitorBundle.php only if Doctrine\DBAL\Connection exists.
- Dominant language
- PHP
- Stars
- 7
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenConext/Monitor-bundle
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
OpenConext/Monitor-bundle#31 ·
-
Support Symonfy 8Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
OpenConext/Monitor-bundle#25 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
OpenConext/Monitor-bundle#24 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
OpenConext/Monitor-bundle#20 · 10 comments ·
All issues in OpenConext/Monitor-bundle
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
area/import type/enhancement when/later
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
parime/glpi-iso27001-management#1165 ·
Maintainers usually reply within 1 day
-
15.0
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
opnsense/plugins#5976 · 1 comment ·
Maintainers usually reply within 1 day