laminas-api-tools

Config in global.php or local.php not working but works from module.config.php in laminas api

一个人想着一个人 提交于 2020-05-17 08:49:39
问题 Config in global.php or local.php not working but works from module.config.php in laminas API. So when developer mode is enabled it works with local.php but as soon as I deploy it doesn't. But when I add the database details in module.config.php then it works. public function __invoke($services) { $db = 'Db\StatusLib'; $table = 'status'; if ($services->has('config')) { $config = $services->get('config'); switch (isset($config['statuslib'])) { case true: $config = $config['statuslib']; $db =