function ServiceMethodsSubscriberTrait::setContainer
File
-
vendor/
symfony/ service-contracts/ ServiceMethodsSubscriberTrait.php, line 68
Class
- ServiceMethodsSubscriberTrait
- Implementation of ServiceSubscriberInterface that determines subscribed services from methods that have the #[SubscribedService] attribute.
Namespace
Symfony\Contracts\ServiceCode
public function setContainer(ContainerInterface $container) : ?ContainerInterface {
$ret = null;
if (method_exists(get_parent_class(self::class) ?: '', __FUNCTION__)) {
$ret = parent::setContainer($container);
}
$this->container = $container;
return $ret;
}