src/ServiceManager/ClassAbstractFactory.php
public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
    {
        $config = $serviceLocator->get('config');
        $class = $this->getClass($config, $requestedName);
        return new $class($config[$requestedName]);
    }
public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
    {
        $config = $serviceLocator->get('config');
        $class = $this->getClass($config, $requestedName);
        return new $class($config[$requestedName]);
    }
public function createServiceWithName ( ServiceLocatorInterface $ serviceLocator , $ name , $ requestedName ) { $ config = $ serviceLocator -> get ( 'config' ) ; $ class = $ this -> getClass ( $ config , $ requestedName ) ; return new $ class ( $ config [ $ requestedName ] ) ; }
Create and configure class by creating new instance of class from
configuration

@see \Zend\ServiceManager\AbstractFactoryInterface::createServiceWithName()
@param ServiceLocatorInterface $serviceLocator
@param string $name
@param string $requestedName
@return mixed
Create and configure class by creating new instance of class from configuration