protected function getConfigArr(string $configAppFile) : array
    {
        $configCoreFile = __DIR__.'/../Config/config.php';
        $configCore = $this->requireFile($configCoreFile);
        $configApp = $this->requireFile($configAppFile);
        
        $services = [];
        $skipCoreServices = $configApp['skipCoreServices'] ?? false;
        if (isset($configCore['services']) && !$skipCoreServices) {
            $services[] = $configCore['services'];
        }
        if (isset($configApp['services'])) {
            $services[] = $configApp['services'];
        }
        $configArr = array_replace_recursive($configCore, $configApp);
        $configArr['services'] = $services;
        
        return $configArr;
    }
protected function getConfigArr(string $configAppFile) : array
    {
        $configCoreFile = __DIR__.'/../Config/config.php';
        $configCore = $this->requireFile($configCoreFile);
        $configApp = $this->requireFile($configAppFile);
        
        $services = [];
        $skipCoreServices = $configApp['skipCoreServices'] ?? false;
        if (isset($configCore['services']) && !$skipCoreServices) {
            $services[] = $configCore['services'];
        }
        if (isset($configApp['services'])) {
            $services[] = $configApp['services'];
        }
        $configArr = array_replace_recursive($configCore, $configApp);
        $configArr['services'] = $services;
        
        return $configArr;
    }
protected function getConfigArr ( string $ configAppFile ) : array { $ configCoreFile = __DIR__ . '/../Config/config.php' ; $ configCore = $ this -> requireFile ( $ configCoreFile ) ; $ configApp = $ this -> requireFile ( $ configAppFile ) ; $ services = [ ] ; $ skipCoreServices = $ configApp [ 'skipCoreServices' ] ?? false ; if ( isset ( $ configCore [ 'services' ] ) && ! $ skipCoreServices ) { $ services [ ] = $ configCore [ 'services' ] ; } if ( isset ( $ configApp [ 'services' ] ) ) { $ services [ ] = $ configApp [ 'services' ] ; } $ configArr = array_replace_recursive ( $ configCore , $ configApp ) ; $ configArr [ 'services' ] = $ services ; return $ configArr ; }
Gets a configuration array.

@param string $configAppFile
@return array
Gets a configuration array .