Skip to content

Deprecate requiring the "symfony/symfony" package #45563

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
Mar 4, 2022

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 6.1
Bug fix? no
New feature? no
Deprecations? yes
Tickets -
License MIT
Doc PR -

@@ -246,6 +247,10 @@ public function load(array $configs, ContainerBuilder $container)
{
$loader = new PhpFileLoader($container, new FileLocator(\dirname(__DIR__).'/Resources/config'));

if (class_exists(InstalledVersions::class) && InstalledVersions::isInstalled('symfony/symfony') && 'symfony/symfony' !== (InstalledVersions::getRootPackage()['name'] ?? '')) {
Copy link
Member

Choose a reason for hiding this comment

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

Why not use class_exists(FullStack::class)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because we want to not trigger the deprecation when testing Symfony itself so we anyway have to use the Composer API.

@ro0NL
Copy link
Contributor

ro0NL commented Feb 27, 2022

#43526 (comment)

are we ready for it now?

@nicolas-grekas
Copy link
Member Author

nicolas-grekas commented Feb 27, 2022

No we're not ready to mark the package as abandoned. I don't think doing so would be a good idea actually as it might confuse ppl a lot.

@fabpot
Copy link
Member

fabpot commented Mar 4, 2022

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 22a778b into symfony:6.1 Mar 4, 2022
@nicolas-grekas nicolas-grekas deleted the no-fullstack branch March 7, 2022 08:55
@fabpot fabpot mentioned this pull request Apr 15, 2022
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