Doctrine\ODM\PHPCR\Mapping\Driver\YamlDriver::loadMappingFile PHP Method

loadMappingFile() protected method

protected loadMappingFile ( $file )
    protected function loadMappingFile($file)
    {
        if (!is_file($file)) {
            throw new InvalidArgumentException(sprintf('File "%s" not found', $file));
        }
        return Yaml::parse(file_get_contents($file));
    }