1 | <?php |
||
15 | class AbstractPamiServiceFactory implements AbstractFactoryInterface |
||
|
|||
16 | { |
||
17 | /** |
||
18 | * Can the factory create an instance for the service? |
||
19 | * |
||
20 | * @param ContainerInterface $container |
||
21 | * @param string $requestedName |
||
22 | * |
||
23 | * @return bool |
||
24 | */ |
||
25 | 2 | public function canCreate(ContainerInterface $container, $requestedName) |
|
29 | |||
30 | /** |
||
31 | * Create an object. |
||
32 | * |
||
33 | * @param ContainerInterface $container |
||
34 | * @param string $requestedName |
||
35 | * @param null|array $options |
||
36 | * |
||
37 | * @throws ServiceNotFoundException if unable to resolve the service |
||
38 | * @throws ServiceNotCreatedException if an exception is raised when |
||
39 | * creating a service |
||
40 | * @throws ContainerException if any other error occurs |
||
41 | * |
||
42 | * @return object |
||
43 | */ |
||
44 | 3 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
58 | |||
59 | /** |
||
60 | * Determine if we can create a service with name. |
||
61 | * |
||
62 | * @param ServiceLocatorInterface $serviceLocator Service Locator |
||
63 | * @param string $name Service name |
||
64 | * @param string $requestedName Service name requested |
||
65 | * |
||
66 | * @return bool |
||
67 | */ |
||
68 | 1 | public function canCreateServiceWithName( |
|
75 | |||
76 | /** |
||
77 | * Get the factoring map. |
||
78 | * |
||
79 | * @param ContainerInterface $container Service locator |
||
80 | * @param string $name Service name |
||
81 | * |
||
82 | * @return bool|array |
||
83 | */ |
||
84 | 4 | private function getFactoryMapping(ContainerInterface $container, $name) |
|
107 | |||
108 | /** |
||
109 | * Create service with name. |
||
110 | * |
||
111 | * @param ServiceLocatorInterface $serviceLocator Service locator |
||
112 | * @param string $name Service name |
||
113 | * @param string $requestedName Service name requested |
||
114 | * |
||
115 | * @return mixed |
||
116 | */ |
||
117 | 2 | public function createServiceWithName( |
|
124 | } |
||
125 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.