remove references to ->getContainer in favor of static::

This commit is contained in:
2021-05-07 10:56:49 +02:00
parent 6df8e6dec8
commit c93d5ceb16
11 changed files with 19 additions and 37 deletions

View File

@@ -60,7 +60,7 @@ class PersonVoterTest extends KernelTestCase
public function setUp()
{
static::bootKernel();
$this->voter = static::$kernel->getContainer()
$this->voter = static::$container
->get('chill.person.security.authorization.person');
$this->prophet = new \Prophecy\Prophet();
}