private function validateComponentKeys(array $v)
    {
        $diff = array_diff_key($v, array_flip($this->enabledComponentTypes));
        if (!empty($diff)) {
            throw new InvalidConfigurationException(sprintf(
                'Only "%s" component types are supported for configuration, "%s" more given.',
                implode('", "', $this->enabledComponentTypes),
                implode('", "', array_keys($diff))
            ));
        }

        return $v;
    }
private function validateComponentKeys(array $v)
    {
        $diff = array_diff_key($v, array_flip($this->enabledComponentTypes));
        if (!empty($diff)) {
            throw new InvalidConfigurationException(sprintf(
                'Only "%s" component types are supported for configuration, "%s" more given.',
                implode('", "', $this->enabledComponentTypes),
                implode('", "', array_keys($diff))
            ));
        }

        return $v;
    }
private function validateComponentKeys ( array $ v ) { $ diff = array_diff_key ( $ v , array_flip ( $ this -> enabledComponentTypes ) ) ; if ( ! empty ( $ diff ) ) { throw new InvalidConfigurationException ( sprintf ( 'Only "%s" component types are supported for configuration, "%s" more given.' , implode ( '", "' , $ this -> enabledComponentTypes ) , implode ( '", "' , array_keys ( $ diff ) ) ) ) ; } return $ v ; }
Validate given array keys are all registered components.

@param array $v

@return array
Validate given array keys are all registered components .