mirror of
https://github.com/getgrav/grav.git
synced 2026-07-20 00:31:02 +02:00
Renamed Grav\Framework\File\Formatter\FormatterInterface to Grav\Framework\File\Interfaces\FileFormatterInterface
This commit is contained in:
@@ -11,20 +11,20 @@ declare(strict_types=1);
|
||||
|
||||
namespace Grav\Framework\File;
|
||||
|
||||
use Grav\Framework\File\Formatter\FormatterInterface;
|
||||
use Grav\Framework\File\Interfaces\FileFormatterInterface;
|
||||
use RuntimeException;
|
||||
|
||||
class DataFile extends AbstractFile
|
||||
{
|
||||
/** @var FormatterInterface */
|
||||
/** @var FileFormatterInterface */
|
||||
protected $formatter;
|
||||
|
||||
/**
|
||||
* File constructor.
|
||||
* @param string $filepath
|
||||
* @param FormatterInterface $formatter
|
||||
* @param FileFormatterInterface $formatter
|
||||
*/
|
||||
public function __construct($filepath, FormatterInterface $formatter)
|
||||
public function __construct($filepath, FileFormatterInterface $formatter)
|
||||
{
|
||||
parent::__construct($filepath);
|
||||
|
||||
|
||||
@@ -11,7 +11,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace Grav\Framework\File\Formatter;
|
||||
|
||||
abstract class AbstractFormatter implements FormatterInterface
|
||||
use Grav\Framework\File\Interfaces\FileFormatterInterface;
|
||||
|
||||
abstract class AbstractFormatter implements FileFormatterInterface
|
||||
{
|
||||
/** @var array */
|
||||
private $config;
|
||||
|
||||
@@ -15,7 +15,7 @@ use Grav\Framework\File\Interfaces\FileFormatterInterface;
|
||||
|
||||
class MarkdownFormatter extends AbstractFormatter
|
||||
{
|
||||
/** @var FormatterInterface */
|
||||
/** @var FileFormatterInterface */
|
||||
private $headerFormatter;
|
||||
|
||||
public function __construct(array $config = [], FileFormatterInterface $headerFormatter = null)
|
||||
|
||||
@@ -9,9 +9,9 @@ declare(strict_types=1);
|
||||
* @license MIT License; see LICENSE file for details.
|
||||
*/
|
||||
|
||||
namespace Grav\Framework\File\Formatter;
|
||||
namespace Grav\Framework\File\Interfaces;
|
||||
|
||||
interface FormatterInterface extends \Serializable
|
||||
interface FileFormatterInterface extends \Serializable
|
||||
{
|
||||
/**
|
||||
* Get default file extension from current formatter (with dot).
|
||||
Reference in New Issue
Block a user