public function validate($data)
    {
        $this->validator->reset();
        $this->validator->check($data, $this->schema());

        if (!$this->validator->isValid()) {
            throw new InvalidConfigurationException(
                $this->validator->getErrors()
            );
        }
    }
public function validate($data)
    {
        $this->validator->reset();
        $this->validator->check($data, $this->schema());

        if (!$this->validator->isValid()) {
            throw new InvalidConfigurationException(
                $this->validator->getErrors()
            );
        }
    }
public function validate ( $ data ) { $ this -> validator -> reset ( ) ; $ this -> validator -> check ( $ data , $ this -> schema ( ) ) ; if ( ! $ this -> validator -> isValid ( ) ) { throw new InvalidConfigurationException ( $ this -> validator -> getErrors ( ) ) ; } }
Validate Composer configuration data.

@param mixed $data The configuration data.

@throws ConfigurationExceptionInterface If the data is invalid.
Validate Composer configuration data .