Skip to content

Commit 419ab39

Browse files
committed
[DI] add #[Required] where applicable
1 parent dcdf2b9 commit 419ab39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Controller/AbstractController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
use Symfony\Component\Serializer\SerializerInterface;
4343
use Symfony\Component\WebLink\EventListener\AddLinkHeaderListener;
4444
use Symfony\Component\WebLink\GenericLinkProvider;
45+
use Symfony\Contracts\Service\Attribute\Required;
4546
use Symfony\Contracts\Service\ServiceSubscriberInterface;
4647
use Twig\Environment;
4748

@@ -60,6 +61,7 @@ abstract class AbstractController implements ServiceSubscriberInterface
6061
/**
6162
* @required
6263
*/
64+
#[Required]
6365
public function setContainer(ContainerInterface $container): ?ContainerInterface
6466
{
6567
$previous = $this->container;

0 commit comments

Comments
 (0)