AssetManager\Service\AssetViewHelperFactory::createService PHP Method

createService() public method

{@inheritDoc}
public createService ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator ) : Asset
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface
return AssetManager\View\Helper\Asset
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        if ($serviceLocator instanceof AbstractPluginManager) {
            $serviceLocator = $serviceLocator->getServiceLocator() ?: $serviceLocator;
        }
        return $this($serviceLocator, Asset::class);
    }