A factory, that retrieves commands from the webapi version 1.1.

Used for the Zend Server version 5.5. Can also handle the commands from 1.0

license New BSD License
link for the canonical source repository
author Ingo Walz
category Zend
package Zend_Service
subpackage ZendServerAPI

 Methods

Check if the factory can create an instance by the given name

canCreateServiceWithName(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, string $name, string $requestedName) 
see \Zend\ServiceManager\AbstractFactoryInterface::canCreateServiceWithName()

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

$name

string

The real name

$requestedName

string

The requested name (alias)

Create an instance by the given name

createServiceWithName(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, string $name, string $requestedName) 
see \Zend\ServiceManager\AbstractFactoryInterface::canCreateServiceWithName()

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

$name

string

The real name

$requestedName

string

The requested name (alias)

Retrieves the command object and throws an error if the command is not supported via this factory (and the Zend Server/webapi version).

factory(string $name) : \ZendService\ZendServerAPI\Method

Will take care of the commands from the previous factories

Parameters

$name

string

Exceptions

\RuntimeException

Returns

\ZendService\ZendServerAPI\Method

 Properties

 

$availableCommands : array