src/RznViewComponent/Service/IncludeComponentTrait.php
public function setServiceLocator(ServiceLocatorInterface $serviceLocator)
    {
        $this->serviceLocator = $serviceLocator;

        $config = $serviceLocator->getServiceLocator()->get('config');

        if (isset($config['rznviewcomponent'])) {
            $this->config = $config['rznviewcomponent'];
        }

        return $this;
    }
public function setServiceLocator(ServiceLocatorInterface $serviceLocator)
    {
        $this->serviceLocator = $serviceLocator;

        $config = $serviceLocator->getServiceLocator()->get('config');

        if (isset($config['rznviewcomponent'])) {
            $this->config = $config['rznviewcomponent'];
        }

        return $this;
    }
Set the service locator.

@param ServiceLocatorInterface $serviceLocator
@return CustomHelper