Skip to content

Add a warning in WDT when using symfony/symfony #43526

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
Oct 16, 2021

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Oct 15, 2021

Q A
Branch? 5.4
Bug fix? no
New feature? yes
Deprecations? no
Tickets n/a
License MIT
Doc PR n/a

Even if using the symfony/symfony package is still possible, it is highly discouraged. It comes with limitations that cannot be fixed (when you are using Mailer/Notifier/Messenger bridges for instance). It also makes the code slower for no good reasons and makes you download all possible Symfony packages even if you are not using them.

This has been the case since 4.0, it's time to warn people that they should upgrade ASAP.

We are adding a warning as we will still be tagging symfony/symfony for the next major versions as these tags help the maintainers.

image

image

@fabpot fabpot force-pushed the full-stack-is-obsolete branch from 4b5451a to f7d4494 Compare October 15, 2021 13:14
@ro0NL
Copy link
Contributor

ro0NL commented Oct 15, 2021

Any reason to not add "abandoned": true for symfony/symfony?

@fabpot fabpot merged commit e2754fb into symfony:5.4 Oct 16, 2021
@fabpot fabpot deleted the full-stack-is-obsolete branch October 16, 2021 10:10
@fabpot
Copy link
Member Author

fabpot commented Oct 16, 2021

@ro0NL We will still tag the symfony/symfony repository for various reasons (mainly to help the core team and to be able to quickly see when a PR was merged on Github). I don't know if marking a package as abandoned would stop the tags to be propagated to Packagist. If not, then that's a good idea.

@javiereguiluz
Copy link
Member

I wouldn't mark the package as "abandoned" in Composer/Packagist, because many non-savvy users will understand it as if the entire Symfony project is abandoned. We should avoid that confusion and bad marketing for the project at all costs.

@chalasr
Copy link
Member

chalasr commented Oct 16, 2021

@javiereguiluz Note that Packagist allows to provide a replacement for the abandoned package, which could be symfony/flex here.

@javiereguiluz
Copy link
Member

javiereguiluz commented Oct 16, 2021

Yes, but that would be confusing too 😭 Has Symfony project renamed to Flex? Has it merged with a different project called Flex?

The thing is that for many non-experts, symfony/symfony repo is Symfony.

fabpot added a commit that referenced this pull request Nov 3, 2021
…'s needed by toolbar.html.twig (weaverryan)

This PR was merged into the 5.4 branch.

Discussion
----------

[5.4][WebProfiler] Fixing missing full_stack variable that's needed by toolbar.html.twig

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | None
| License       | MIT
| Doc PR        | Not needed

The combination of #43526 and then #41257 created an undefined variable. By adding the variable here, it will flow from `toolbar_js.html.twig` into `toolbar.html.twig`.

Tested locally after reproducing the issue. Thanks to symfony/ux test suite for catching this :)

Commits
-------

0e8b864 Fixing missing full_stack variable that's needed by toolbar.html.twig
This was referenced Nov 5, 2021
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.

8 participants