AssetManager\Controller\ConsoleControllerFactory::createService PHP Method

createService() public method

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