PHP Class Zend\Mvc\Service\ResponseFactory

Inheritance: implements Zend\ServiceManager\FactoryInterface
Mostrar archivo Open project: zendframework/zend-mvc

Public Methods

Method Description
__invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\Http\PhpEnvironment\Response Create and return a response instance.
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\Http\PhpEnvironment\Response Create and return response instance.

Method Details

__invoke() public method

Create and return a response instance.
public __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\Http\PhpEnvironment\Response
$container Interop\Container\ContainerInterface
$name string
$options array
return Zend\Http\PhpEnvironment\Response

createService() public method

For use with zend-servicemanager v2; proxies to __invoke().
public createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\Http\PhpEnvironment\Response
$container Zend\ServiceManager\ServiceLocatorInterface
return Zend\Http\PhpEnvironment\Response