1 | <?php |
||
29 | class FeatureToggleViewHelperFactory implements FactoryInterface |
||
30 | { |
||
31 | /** |
||
32 | * Create an object |
||
33 | * |
||
34 | * @param ContainerInterface $container |
||
35 | * @param string $requestedName |
||
36 | * @param null|array $options |
||
37 | * @return object |
||
38 | * @throws ServiceNotFoundException if unable to resolve the service. |
||
39 | * @throws ServiceNotCreatedException if an exception is raised when |
||
40 | * creating a service. |
||
41 | * @throws ContainerException if any other error occurs |
||
42 | */ |
||
43 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
54 | |||
55 | /** |
||
56 | * Create service |
||
57 | * |
||
58 | * @param ServiceLocatorInterface $serviceLocator |
||
59 | * |
||
60 | * @return FeatureToggle |
||
61 | * |
||
62 | * @throws ServiceNotFoundException |
||
63 | */ |
||
64 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
68 | } |
||
69 |