1 | <?php |
||
19 | class ClientFactory extends AbstractFactory |
||
20 | { |
||
21 | /** |
||
22 | * Get the class name of the options associated with this factory. |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | 1 | public function getOptionsClass() |
|
30 | |||
31 | /** |
||
32 | * Create an object. |
||
33 | * |
||
34 | * @param ContainerInterface $container |
||
35 | * @param string $requestedName |
||
36 | * @param null|array $options |
||
37 | * |
||
38 | * @throws \RuntimeException |
||
39 | * @throws \Interop\Container\Exception\NotFoundException |
||
40 | * @throws ServiceNotFoundException if unable to resolve the service |
||
41 | * @throws ServiceNotCreatedException if an exception is raised when |
||
42 | * creating a service |
||
43 | * @throws ContainerException if any other error occurs |
||
44 | * |
||
45 | * @return Client |
||
46 | */ |
||
47 | 1 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
77 | |||
78 | /** |
||
79 | * @param ContainerInterface $container |
||
80 | * |
||
81 | * @return EventManager |
||
82 | */ |
||
83 | 1 | protected function createEventManager(ContainerInterface $container) |
|
101 | |||
102 | /** |
||
103 | * Does the EventManager accept the shared manager to the constructor? |
||
104 | * |
||
105 | * In zend-eventmanager v3, the EventManager accepts the shared manager |
||
106 | * instance to the constructor *only*, while in v2, it must be injected |
||
107 | * via the setSharedManager() method. |
||
108 | * |
||
109 | * @return bool |
||
110 | */ |
||
111 | 1 | private function acceptsSharedManagerToConstructor() |
|
117 | |||
118 | /** |
||
119 | * Create service. |
||
120 | * |
||
121 | * @param ServiceLocatorInterface $serviceLocator Service locator |
||
122 | * |
||
123 | * @return Client |
||
124 | */ |
||
125 | 1 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
129 | } |
||
130 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.