Skip to content

[FrameworkBundle] removed the Asset component dependency on FrameworkBundle #20067

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

Merged
merged 1 commit into from
Sep 28, 2016

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Sep 28, 2016

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no (except for people using FrameworkBundle without requiring symfony/symfony which should be pretty rare; and fixing this is easy by adding symfony/asset explicitly)
Deprecations? no
Tests pass? yes
Fixed tickets #15748 partially
License MIT
Doc PR n/a

Trying to reduce the number of required dependencies on FrameworkBundle. This PR removes the Asset component from the list.

@xabbuh
Copy link
Member

xabbuh commented Sep 28, 2016

👍

By the way, I do not think that this change will not be breaking some applications. In my experience there are way to many packages out there that require the FrameworkBundle instead of explicitly listing their dependencies. Probably, not many of them will break because of the missing Asset component, but we will probably have to expect some (a lot of) reports when doing similar changes with other component. Though maybe this helps to educate people to be more explicit with what their packages actually really need without pulling the whole universe.

{
if (!class_exists('Symfony\Component\Asset\Package')) {
return false;
}
Copy link
Contributor

@jvasseur jvasseur Sep 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this command uses anything from the asset component and so could stay enabled if the component isn't installed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, you're right, reverted

@fabpot fabpot force-pushed the asset-dep-frameworkbundle branch from c2ddb68 to 1dd4e21 Compare September 28, 2016 13:52
@fabpot fabpot merged commit 1dd4e21 into symfony:master Sep 28, 2016
fabpot added a commit that referenced this pull request Sep 28, 2016
…cy on FrameworkBundle (fabpot)

This PR was merged into the 3.2-dev branch.

Discussion
----------

[FrameworkBundle] removed the Asset component dependency on FrameworkBundle

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no (except for people using FrameworkBundle without requiring symfony/symfony which should be pretty rare; and fixing this is easy by adding symfony/asset explicitly)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15748 partially
| License       | MIT
| Doc PR        | n/a

Trying to reduce the number of required dependencies on FrameworkBundle. This PR removes the Asset component from the list.

Commits
-------

1dd4e21 [FrameworkBundle] removed the Asset component dependency on FrameworkBundle
@fabpot fabpot deleted the asset-dep-frameworkbundle branch September 28, 2016 14:38
@fabpot fabpot mentioned this pull request Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants