Symfony.php
29 lines
| 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 | declare (strict_types=1); |
| 11 | namespace IAWPSCOPED\DeviceDetector\Yaml; |
| 12 | |
| 13 | use IAWPSCOPED\Symfony\Component\Yaml\Yaml; |
| 14 | /** @internal */ |
| 15 | class Symfony implements ParserInterface |
| 16 | { |
| 17 | /** |
| 18 | * Parses the file with the given filename using Symfony Yaml parser and returns the converted content |
| 19 | * |
| 20 | * @param string $file |
| 21 | * |
| 22 | * @return mixed |
| 23 | */ |
| 24 | public function parseFile(string $file) |
| 25 | { |
| 26 | return Yaml::parseFile($file); |
| 27 | } |
| 28 | } |
| 29 |