protected function config($data = []) {

		if(null === $data) {
			$data = [];
		}

		if(false === is_array($data)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type array, "%s" given', __METHOD__, gettype($data)), E_USER_ERROR);
		}

		$module = Router :: getRoute() -> getModule();
		
		return Config :: get(array_merge([$module], $data));
	}
protected function config($data = []) {

		if(null === $data) {
			$data = [];
		}

		if(false === is_array($data)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type array, "%s" given', __METHOD__, gettype($data)), E_USER_ERROR);
		}

		$module = Router :: getRoute() -> getModule();
		
		return Config :: get(array_merge([$module], $data));
	}
protected function config ( $ data = [ ] ) { if ( null === $ data ) { $ data = [ ] ; } if ( false === is_array ( $ data ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type array, "%s" given' , __METHOD__ , gettype ( $ data ) ) , E_USER_ERROR ) ; } $ module = Router :: getRoute ( ) -> getModule ( ) ; return Config :: get ( array_merge ( [ $ module ] , $ data ) ) ; }
Returns the config for the current module
@param array $data
@return mixed
Returns the config for the current module