Files
grav-lecampus/system/src/Grav/Framework/File/YamlFile.php
2022-03-15 10:52:21 +01:00

41 lines
780 B
PHP

<?php
declare(strict_types=1);
/**
* @package Grav\Framework\File
*
* @copyright Copyright (c) 2015 - 2022 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\File;
use Grav\Framework\File\Formatter\YamlFormatter;
/**
* Class YamlFile
* @package Grav\Framework\File
*/
class YamlFile extends DataFile
{
/**
* File constructor.
* @param string $filepath
* @param YamlFormatter $formatter
*/
public function __construct($filepath, YamlFormatter $formatter)
{
parent::__construct($filepath, $formatter);
}
/**
* @return array
*/
public function load(): array
{
/** @var array */
return parent::load();
}
}