1<?php 2 3/** 4 * Device Detector - The Universal Device Detection library for parsing User Agents 5 * 6 * @link https://matomo.org 7 * 8 * @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later 9 */ 10 11declare(strict_types=1); 12 13namespace DeviceDetector\Yaml; 14 15use Spyc as SpycParser; 16 17class Spyc implements ParserInterface 18{ 19 /** 20 * Parses the file with the given filename using Spyc and returns the converted content 21 * 22 * @param string $file 23 * 24 * @return mixed 25 */ 26 public function parseFile(string $file) 27 { 28 return SpycParser::YAMLLoad($file); 29 } 30} 31