src/ServiceManager/ClassAbstractFactory.php
public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
    {
        $config = $serviceLocator->get('config');
        $class = $this->getClass($config, $requestedName);
        return $class && class_exists($class);
    }
public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
    {
        $config = $serviceLocator->get('config');
        $class = $this->getClass($config, $requestedName);
        return $class && class_exists($class);
    }
public function canCreateServiceWithName ( ServiceLocatorInterface $ serviceLocator , $ name , $ requestedName ) { $ config = $ serviceLocator -> get ( 'config' ) ; $ class = $ this -> getClass ( $ config , $ requestedName ) ; return $ class && class_exists ( $ class ) ; }
Test if configuration exists and has class field

@see \Zend\ServiceManager\AbstractFactoryInterface::canCreateServiceWithName()
@param ServiceLocatorInterface $serviceLocator
@param string $name
@param string $requestedName
@return boolean
Test if configuration exists and has class field