-
-
Notifications
You must be signed in to change notification settings - Fork 195
[Question] Remove more dependencies from new Symfony applications? #14
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
Comments
I've done a lot of work in 3.3 to remove as many deps as possible. 3.4 will be the occasion to try removing some more, but I'm not sure we will be able to remove lots of them. |
|
symfony/security-core depending on symfony/polyfill-util is bunk. So that's 4 off the list that will be removed when the minimum php version is bumped. |
And |
|
So, actually there's these four packages that could be looked into:
|
@xabbuh is it
Regarding |
No, it's The Stopwatch IMO is not necessarily a hard requirement. Most of the times you will probably not use the profiler in production. |
But then, it means people would have to depend on it explicitly to benefit from this panel in the profiler. And we have to make the registration conditional (which is a BC break btw, as some bundles might expect that the service is there when FrameworkBundle is enabled) |
Sure, but the same was already true for the other changes that we made to dependencies there. |
looks like |
@xabbuh I've just executed |
@javiereguiluz yeah, the PR fixing the bad merge is not merged yet. this is why you still have it |
…ction (xabbuh) This PR was merged into the 3.2 branch. Discussion ---------- [FrameworkBundle] remove Security deps from the require section | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | These requirements have been moved in #20075 before and are still present in the `require-dev` section. see symfony/flex#14 Commits ------- c690256 remove Security deps from the require section
Closing this one as the two mentioned PRs on symfony/symfony removes the two remaining dependencies. |
…(fabpot) This PR was squashed before being merged into the 3.4 branch (closes #23131). Discussion ---------- [FrameworkBundle] Remove dependency on Doctrine cache | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes | BC breaks? | yes | Deprecations? | yes | Tests pass? | yes | Fixed tickets | related to symfony/flex#14 | License | MIT | Doc PR | n/a In our quest to remove hard dependencies, I propose to remove `doctrine/cache` from the default dependencies on the Framework bundle. That's possible now as we have PSR6 cache support in Symfony and because Doctrine cache is only used for the validator mapping cache. The two other occurrences are for the serializer (already deprecated in 3.3) and for annotations, where we need to keep it, but as Doctrine annotations is already optional, that's not an issue. Commits ------- a4e336e [FrameworkBundle] removed doctrine/cache as a dependency b57895c [FrameworkBundle] deprecated validator.mapping.cache.doctrine.apc
…(fabpot) This PR was squashed before being merged into the 3.4 branch (closes #23131). Discussion ---------- [FrameworkBundle] Remove dependency on Doctrine cache | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes | BC breaks? | yes | Deprecations? | yes | Tests pass? | yes | Fixed tickets | related to symfony/flex#14 | License | MIT | Doc PR | n/a In our quest to remove hard dependencies, I propose to remove `doctrine/cache` from the default dependencies on the Framework bundle. That's possible now as we have PSR6 cache support in Symfony and because Doctrine cache is only used for the validator mapping cache. The two other occurrences are for the serializer (already deprecated in 3.3) and for annotations, where we need to keep it, but as Doctrine annotations is already optional, that's not an issue. Comm 8000 its ------- a4e336ea34 [FrameworkBundle] removed doctrine/cache as a dependency b57895ccaf [FrameworkBundle] deprecated validator.mapping.cache.doctrine.apc
…h component (xabbuh) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] drop hard dependency on the Stopwatch component | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | related to symfony/flex#14 | License | MIT | Doc PR | Commits ------- 8d70ca0 drop hard dependency on the Stopwatch component
…h component (xabbuh) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] drop hard dependency on the Stopwatch component | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | related to symfony/flex#14 | License | MIT | Doc PR | Commits ------- 8d70ca0ff4 drop hard dependency on the Stopwatch component
For the record, here are the deps installed when using Flex on Symfony 4.0:
|
From 28 to 19, nice! 👏 |
…luz) This PR was merged into the master branch. Discussion ---------- Proposed "logger" as an alias of Monolog Commits ------- 5da6d51 Proposed "loggers" as an alias of Monolog
Uh oh!
There was an error while loading. Please reload this page.
These are all the dependencies of a fresh Symfony app installed with Symfony Flex:
One of the main goals for Symfony 4 is to be as minimal as possible, so I don't know why these are installed:
doctrine/cache
(required by
symfony/framework-bundle
), see [FrameworkBundle] Remove dependency on Doctrine cache symfony#23131symfony/security-core
andsymfony/security-csrf
(required bysymfony/framework-bundle
), see [FrameworkBundle] remove Security deps from the require section symfony#22715symfony/polyfill-php56
(required bysymfony/security-*
)symfony/polyfill-php70
(required bysymfony/security-csrf
)symfony/polyfill-util
(required bysymfony/security-core
andsymfony/polyfill-php56
)symfony/stopwatch
(required bysymfony/framework-bundle
)symfony/class-loader
(required bysymfony/framework-bundle
)paragonie/random_compat
(required bysymfony/polyfill-php70
)The text was updated successfully, but these errors were encountered: