Gc\Mvc\Module::getConfig PHP Method

getConfig() public method

Get module configuration
public getConfig ( ) : array
return array
    public function getConfig()
    {
        if (empty($this->config)) {
            $config = (include $this->getDir() . '/config/module.config.php');
            $this->config = $config;
        }
        return $this->config;
    }

Usage Example

Example #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testGetConfig()
 {
     $coreConfig = Registry::get('Application')->getServiceManager()->get('CoreConfig');
     $coreConfig->setValue('debug_is_active', 1);
     $this->assertInternalType('array', $this->object->getConfig());
 }