IniFile.php 780 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * @package Grav\Framework\File
  5. *
  6. * @copyright Copyright (c) 2015 - 2023 Trilby Media, LLC. All rights reserved.
  7. * @license MIT License; see LICENSE file for details.
  8. */
  9. namespace Grav\Framework\File;
  10. use Grav\Framework\File\Formatter\IniFormatter;
  11. /**
  12. * Class IniFile
  13. * @package RocketTheme\Toolbox\File
  14. */
  15. class IniFile extends DataFile
  16. {
  17. /**
  18. * File constructor.
  19. * @param string $filepath
  20. * @param IniFormatter $formatter
  21. */
  22. public function __construct($filepath, IniFormatter $formatter)
  23. {
  24. parent::__construct($filepath, $formatter);
  25. }
  26. /**
  27. * @return array
  28. */
  29. public function load(): array
  30. {
  31. /** @var array */
  32. return parent::load();
  33. }
  34. }