From bf65e5cd5321f046a1feceea9b2afb50201afaa5 Mon Sep 17 00:00:00 2001 From: Vitaliy Fomenkov <58430814+Bicycledays@users.noreply.github.com> Date: Fri, 14 Feb 2025 13:16:06 +0300 Subject: [PATCH] Update UnitTests.md --- docs/UnitTests.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/UnitTests.md b/docs/UnitTests.md index d4d088212..88d6c0b5a 100644 --- a/docs/UnitTests.md +++ b/docs/UnitTests.md @@ -355,8 +355,8 @@ $em = $this->getModule('Doctrine')->em; If you use the `Symfony` module, here is how you can access the Symfony container: ```php -/** @var Symfony\Component\DependencyInjection\Container */ -$container = $this->getModule('Symfony')->container; +/** @var Symfony\Component\DependencyInjection\ContainerInterface */ +$container = $this->getModule('Symfony')->_getContainer(); ``` The same can be done for all public properties of an enabled module. Accessible properties are listed in the module reference.