* @author Shalini Balakrishnan * @copyright Copyright (c) 2013 Z&H Consultancy Services Private Limited * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ use Interop\Container\ContainerInterface; use Laminas\ServiceManager\Factory\InvokableFactory; use Laminas\Router\Http\Segment; use Laminas\ServiceManager\AbstractPluginManager; use Laminas\Db\ResultSet\ResultSet; use Installer\Model\InstModule; use Laminas\Db\Adapter\Adapter; return array( 'controllers' => array( 'factories' => [ Installer\Controller\InstallerController::class => function (ContainerInterface $container, $requestedName) { $dbAdapter = $container->get(Adapter::class); $resultSetPrototype = new ResultSet(); $resultSetPrototype->setArrayObjectPrototype(new InstModule()); $tableGateway = new Installer\Model\InstModuleTableGateway('InstModule', $dbAdapter, null, $resultSetPrototype); $InstModuleTable = new Installer\Model\InstModuleTable($tableGateway, $container); return new Installer\Controller\InstallerController($InstModuleTable); }, ] ), 'router' => array( 'routes' => array( 'Installer' => array( 'type' => Segment::class, 'options' => array( 'route' => '/Installer[/:action][/:id]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9]+', ), 'defaults' => array( 'controller' => Installer\Controller\InstallerController::class, 'action' => 'index', ), ), ), ), ), 'console' => array( 'router' => array( 'routes' => array( 'zfc-module' => array( 'options' => array( 'route' => 'zfc-module --site= --modaction= --modname= ', 'defaults' => array( 'controller' => Installer\Controller\InstallerController::class, 'action' => 'command-install-module', ), ) ), 'acl-modify' => array( 'options' => array( 'route' => 'acl-modify --site= --modname= --aclgroup= --aclaction= ', 'defaults' => array( 'controller' => Acl\Controller\AclController::class, 'action' => 'acl-modify-command', ), ) ), 'register' => array( 'options' => array( 'route' => 'register --mtype= --modname=', 'defaults' => array( 'controller' => Installer\Controller\InstallerController::class, 'action' => 'register', ), ), ), 'ccda-import' => array( 'options' => array( 'route' => 'ccda-import --site= --document_id=', 'defaults' => array( 'controller' => Carecoordination\Controller\CarecoordinationController::class, 'action' => 'import-command', ), ), ), 'ccda-newpatient' => array( 'options' => array( 'route' => 'ccda-newpatient --site= --am_id= --document_id=', 'defaults' => array( 'controller' => Carecoordination\Controller\CarecoordinationController::class, 'action' => 'newpatient-command', ), ), ), 'ccda-newpatient-import' => array( 'options' => array( 'route' => 'ccda-newpatient-import --site= --document=', 'defaults' => array( 'controller' => Carecoordination\Controller\CarecoordinationController::class, 'action' => 'newpatient-import-command', ), ), ), ) ) ), 'view_manager' => array( 'template_map' => array( 'site/layout' => __DIR__ . '/../view/layout/layout.phtml', ), 'template_path_stack' => array( 'installer' => __DIR__ . '/../view', ), 'layout' => 'site/layout', ), 'moduleconfig' => array( ), );