psr12 fixes for new PHP_CodeSniffer (#4795)
[openemr.git] / interface / modules / zend_modules / module / Carecoordination / src / Carecoordination / Factory / SetupControllerFactory.php
blobd57febd76447ec5a8513b80ecd3449506f406434
1 <?php
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;
11 /**
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));