Skip to content

Commit 9b08ab8

Browse files
committed
minor #8530 Updated bootKernel examples to return the $kernel object (javiereguiluz)
This PR was merged into the 3.3 branch. Discussion ---------- Updated bootKernel examples to return the $kernel object This fixes #7783. Commits ------- 8c168eb Updated bootKernel examples to return the $kernel object
2 parents 03904fe + 8c168eb commit 9b08ab8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

console.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ console::
224224
{
225225
public function testExecute()
226226
{
227-
self::bootKernel();
228-
$application = new Application(self::$kernel);
227+
$kernel = self::bootKernel();
228+
$application = new Application($kernel);
229229

230230
$application->add(new CreateUserCommand());
231231

testing/doctrine.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ which makes all of this quite easy::
3636
*/
3737
protected function setUp()
3838
{
39-
self::bootKernel();
39+
$kernel = self::bootKernel();
4040

41-
$this->em = static::$kernel->getContainer()
41+
$this->em = $kernel->getContainer()
4242
->get('doctrine')
4343
->getManager();
4444
}

0 commit comments

Comments
 (0)