| 1 | <?php |
||
| 12 | class ActionAbstractFactory implements AbstractFactoryInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Can the factory create an instance for the service? |
||
| 16 | * |
||
| 17 | * @param ContainerInterface $container |
||
| 18 | * @param string $requestedName |
||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | 1 | public function canCreate(ContainerInterface $container, $requestedName) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Create an object |
||
| 28 | * |
||
| 29 | * @param ContainerInterface $container |
||
| 30 | * @param string $requestedName |
||
| 31 | * @param null|array $options |
||
| 32 | * @return object |
||
| 33 | * @throws ServiceNotFoundException if unable to resolve the service. |
||
| 34 | * @throws ServiceNotCreatedException if an exception is raised when |
||
| 35 | * creating a service. |
||
| 36 | * @throws ContainerException if any other error occurs |
||
| 37 | */ |
||
| 38 | 1 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
| 44 | } |
||
| 45 |