Renamed Grav\Framework\File\Formatter\FormatterInterface to Grav\Framework\File\Interfaces\FileFormatterInterface

This commit is contained in:
Matias Griese
2019-02-25 11:29:48 +02:00
parent d59d60647c
commit ff23f6b015
4 changed files with 10 additions and 8 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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)

View File

@@ -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).