1 | <?php |
||
18 | class ClientFactory extends AbstractFactory |
||
19 | { |
||
20 | /** |
||
21 | * Get the class name of the options associated with this factory. |
||
22 | * |
||
23 | * @return string |
||
24 | */ |
||
25 | 1 | public function getOptionsClass() |
|
29 | |||
30 | /** |
||
31 | * Create an object. |
||
32 | * |
||
33 | * @param ContainerInterface $container |
||
34 | * @param string $requestedName |
||
35 | * @param null|array $options |
||
36 | * |
||
37 | * @throws \RuntimeException |
||
38 | * @throws \Interop\Container\Exception\NotFoundException |
||
39 | * @throws ServiceNotFoundException if unable to resolve the service |
||
40 | * @throws ServiceNotCreatedException if an exception is raised when |
||
41 | * creating a service |
||
42 | * @throws ContainerException if any other error occurs |
||
43 | * |
||
44 | * @return Client |
||
45 | */ |
||
46 | 1 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
75 | |||
76 | /** |
||
77 | * Create service. |
||
78 | * |
||
79 | * @param ServiceLocatorInterface $serviceLocator Service locator |
||
80 | * |
||
81 | * @return Client |
||
82 | */ |
||
83 | 1 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
87 | } |
||
88 |