public function createService(ServiceLocatorInterface $serviceLocator) { if ($serviceLocator instanceof AbstractPluginManager) { $serviceLocator = $serviceLocator->getServiceLocator() ?: $serviceLocator; } return $this($serviceLocator, Asset::class); }