3 namespace Carecoordination\Factory
;
5 use Carecoordination\Controller\EncounterccdadispatchController
;
6 use Carecoordination\Model\EncountermanagerTable
;
7 use Interop\Container\ContainerInterface
;
8 use Laminas\ServiceManager\Factory\FactoryInterface
;
9 use Carecoordination\Controller\SetupController
;
12 * Creates instances of SetupController. This is necessary because the controller is used both as a service
13 * and a route 'controller' which duplicates the setup code. Having the factory puts the setup code into one spot.
15 class SetupControllerFactory
implements FactoryInterface
17 public function __invoke(ContainerInterface
$container, $requestedName, array $options = null)
19 return new SetupController($container->get(\Carecoordination\Model\SetupTable
::class));