public function read($path = null, $throwOnFailure = false)
    {
        $this->typeCheck->read(func_get_args());
        if (null === $path) {
            $path = $this->isolator->getcwd();
        }

        if ($configuration = $this->readTyphoon($path)) {
            return $configuration;
        }
        if ($configuration = $this->readComposer($path)) {
            return $configuration;
        }

        if ($throwOnFailure) {
            throw new Exception\ConfigurationReadException($this->typhoonPath($path));
        }

        return null;
    }
public function read($path = null, $throwOnFailure = false)
    {
        $this->typeCheck->read(func_get_args());
        if (null === $path) {
            $path = $this->isolator->getcwd();
        }

        if ($configuration = $this->readTyphoon($path)) {
            return $configuration;
        }
        if ($configuration = $this->readComposer($path)) {
            return $configuration;
        }

        if ($throwOnFailure) {
            throw new Exception\ConfigurationReadException($this->typhoonPath($path));
        }

        return null;
    }
@param string|null $path
@param boolean     $throwOnFailure

@return Configuration|null