The question that's left out is: What kind of entry is WebinoImageThumb
. Is it a ViewHelper, is it a ControllerPlugin or is it a Service?
It probably isn't a ViewHelper, because if it would be, you could access it like you did.
If it's a Service, you'll get it from the ServiceManager
return new \Base\View\Helper\ImageLib(
$sm->getServiceLocator()->get('WebinoImageThumb')
);
If it's a ControllerPlugin, you'll get it from the ControllerPluginManager
return new \Base\View\Helper\ImageLib(
$sm->getServiceLocator()->get('ControllerPluginManager')->get('WebinoImageThumb')
);