8000 [DI] use `#[Required]` to `ServiceSubscriberTrait::setContainer()` · symfony/symfony@1ce4c2c · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ce4c2c

Browse files
committed
[DI] use #[Required] to ServiceSubscriberTrait::setContainer()
1 parent c58b038 commit 1ce4c2c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Contracts/Service/ServiceSubscriberTrait.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Contracts\Service;
1313

1414
use Psr\Container\ContainerInterface;
15+
use Symfony\Contracts\Service\Attribute\Required;
1516
use Symfony\Contracts\Service\Attribute\SubscribedService;
1617

1718
/**
@@ -67,9 +68,7 @@ public static function getSubscribedServices(): array
6768
return $services;
6869
}
6970

70-
/**
71-
* @required
72-
*/
71+
#[Required]
7372
public function setContainer(ContainerInterface $container): ?ContainerInterface
7473
{
7574
$this->container = $container;

0 commit comments

Comments
 (0)
0