public function read($path)
    {
        $data = $this->readJson($path);
        $this->validator()->validate($data);

        return $this->createConfiguration($data);
    }
public function read($path)
    {
        $data = $this->readJson($path);
        $this->validator()->validate($data);

        return $this->createConfiguration($data);
    }
public function read ( $ path ) { $ data = $ this -> readJson ( $ path ) ; $ this -> validator ( ) -> validate ( $ data ) ; return $ this -> createConfiguration ( $ data ) ; }
Read a Composer configuration file.

@param string $path The configuration file path.

@return Configuration                   The parsed configuration.
@throws ConfigurationExceptionInterface If there is a problem reading the configuration.
Read a Composer configuration file .