Aggiornato Composer
This commit is contained in:
@@ -30,12 +30,6 @@ trait ServiceSubscriberTrait
|
||||
*/
|
||||
public static function getSubscribedServices(): array
|
||||
{
|
||||
static $services;
|
||||
|
||||
if (null !== $services) {
|
||||
return $services;
|
||||
}
|
||||
|
||||
$services = method_exists(get_parent_class(self::class) ?: '', __FUNCTION__) ? parent::getSubscribedServices() : [];
|
||||
$attributeOptIn = false;
|
||||
|
||||
@@ -104,12 +98,13 @@ trait ServiceSubscriberTrait
|
||||
*/
|
||||
public function setContainer(ContainerInterface $container)
|
||||
{
|
||||
$this->container = $container;
|
||||
|
||||
$ret = null;
|
||||
if (method_exists(get_parent_class(self::class) ?: '', __FUNCTION__)) {
|
||||
return parent::setContainer($container);
|
||||
$ret = parent::setContainer($container);
|
||||
}
|
||||
|
||||
return null;
|
||||
$this->container = $container;
|
||||
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user