We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[Required]
1 parent dcdf2b9 commit 419ab39Copy full SHA for 419ab39
Controller/AbstractController.php
@@ -42,6 +42,7 @@
42
use Symfony\Component\Serializer\SerializerInterface;
43
use Symfony\Component\WebLink\EventListener\AddLinkHeaderListener;
44
use Symfony\Component\WebLink\GenericLinkProvider;
45
+use Symfony\Contracts\Service\Attribute\Required;
46
use Symfony\Contracts\Service\ServiceSubscriberInterface;
47
use Twig\Environment;
48
@@ -60,6 +61,7 @@ abstract class AbstractController implements ServiceSubscriberInterface
60
61
/**
62
* @required
63
*/
64
+ #[Required]
65
public function setContainer(ContainerInterface $container): ?ContainerInterface
66
{
67
$previous = $this->container;
0 commit comments