Skip to content

[FrameworkBundle] Returns the kernel instance in KernelTestCase::bootKernel #7783

Closed
@javiereguiluz

Description

@javiereguiluz

See symfony/symfony#22276

This is the new code allowed by this change:

// Before
static::bootKernel($options);
$client = static::$kernel->getContainer()->get('test.client');

// after
$kernel = static::bootKernel($options)
$client = $kernel->getContainer()->get('test.client');

Not sure if we should mention or explain this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrameworkBundlehasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions