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 Symfony\Component\Yaml\Yaml; 16 17class Symfony implements ParserInterface 18{ 19 /** 20 * Parses the file with the given filename using Symfony Yaml parser and returns the converted content 21 * 22 * @param string $file 23 * 24 * @return mixed 25 */ 26 public function parseFile(string $file) 27 { 28 return Yaml::parseFile($file); 29 } 30} 31