Skip to content

Commit a860353

Browse files
committed
[Console] Added Application::reset()
1 parent 33d3f1d commit a860353

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Console/Application.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ public function getKernel()
5555
return $this->kernel;
5656
}
5757

58+
/**
59+
* {@inheritdoc}
60+
*/
61+
public function reset()
62+
{
63+
if ($this->kernel->getContainer()->has('services_resetter')) {
64+
$this->kernel->getContainer()->get('services_resetter')->reset();
65+
}
66+
}
67+
5868
/**
5969
* Runs the current application.
6070
*

0 commit comments

Comments
 (0)