-
-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make explicit some missing deps #415
Conversation
composer.json
Outdated
@@ -26,7 +30,7 @@ | |||
"gedmo/doctrine-extensions": "^3.0", | |||
"matthiasnoback/symfony-dependency-injection-test": "^4.2.1", | |||
"symfony/cache": "^4.4 || ^5.2", | |||
"symfony/framework-bundle": "^4.4 || ^5.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this removal ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class Controller
was removed in symfony/framework-bundle:5.x
:
EntityAuditBundle/src/Controller/AuditController.php
Lines 23 to 37 in af61a7b
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
/** | |
* Controller for listing auditing information. | |
* | |
* @author Tim Nagel <[email protected]> | |
* | |
* @deprecated since sonata-project/entity-audit-bundle 1.1, will be remove in 2.0. | |
* | |
* NEXT_MAJOR: remove this controller | |
*/ | |
class AuditController extends Controller |
Could you please rebase your PR and fix merge conflicts? |
As stated in the checks for this PR, this package is not compatible with |
I would remove symfony/framework as a dev dependency and instead add it as an extra build (with the variant thing). And ignore the errors of static analysis tools. the class is deprecated and is not suposed to be used or modified anymore, so not a big deal if it is ignored by the tools. wdyt? |
"symfony/config": "^4.4 || ^5.3 || ^6.0", | ||
"symfony/http-kernel": "^4.4 || ^5.3 || ^6.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this as require dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this package is a Symfony bundle:
EntityAuditBundle/src/SimpleThingsEntityAuditBundle.php
Lines 14 to 20 in 5a442d2
namespace SimpleThings\EntityAudit; | |
use Symfony\Component\HttpKernel\Bundle\Bundle; | |
class SimpleThingsEntityAuditBundle extends Bundle | |
{ | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then dependency injection should be moved to, right?
I agree. |
d8fc2e3
to
40d3156
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the dev-kit PR to add the variant thing, and IMO we should move dependency injection to require section. Other than that looks great
.github/workflows/test.yaml
Outdated
- php-version: '8.0' | ||
dependencies: highest | ||
allowed-to-fail: false | ||
variant: symfony/framework-bundle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imo we should make explicit the 4.4 version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
a63374a
Thanks @phansys |
Subject
Make explicit some missing deps.
I am targeting this branch, because these changes respect BC.
Changelog