public function getConfig($prefix){
		/* @var $siteConfigService EyeService */
		$siteConfigService = $this->getServiceLocator()->get(EyeService::class);
		$config = $siteConfigService->getAll();
		
		// get config selected by prefix
		$prefixParts = explode('.', $prefix);
		$conf = $config;
		foreach ($prefixParts as $prefix) {
			if(isset($conf[$prefix])){
				$conf = $conf[$prefix];
			} else {
				$conf = array();
			}
		}
		return $conf;
	}
public function getConfig($prefix){
		/* @var $siteConfigService EyeService */
		$siteConfigService = $this->getServiceLocator()->get(EyeService::class);
		$config = $siteConfigService->getAll();
		
		// get config selected by prefix
		$prefixParts = explode('.', $prefix);
		$conf = $config;
		foreach ($prefixParts as $prefix) {
			if(isset($conf[$prefix])){
				$conf = $conf[$prefix];
			} else {
				$conf = array();
			}
		}
		return $conf;
	}
public function getConfig ( $ prefix ) { /* @var $siteConfigService EyeService */ $ siteConfigService = $ this -> getServiceLocator ( ) -> get ( EyeService :: class ) ; $ config = $ siteConfigService -> getAll ( ) ; // get config selected by prefix $ prefixParts = explode ( '.' , $ prefix ) ; $ conf = $ config ; foreach ( $ prefixParts as $ prefix ) { if ( isset ( $ conf [ $ prefix ] ) ) { $ conf = $ conf [ $ prefix ] ; } else { $ conf = array ( ) ; } } return $ conf ; }
Get config for specified prefix
@param string $prefix
@return array
Get config for specified prefix