logger = $logger; if (\property_exists($this, 'services') && \is_array($this->services)) { foreach ($this->services as $name) { if ($this->{$name} && $this->{$name} instanceof \WP_Ultimo\Dependencies\Psr\Log\LoggerAwareInterface) { $this->{$name}->setLogger($logger); } } } } }