[Translation][File dumper] allow new child classes to implement only formatCatalogue.
This commit is contained in:
parent
4d275b42da
commit
5fd9f2f33f
@ -114,7 +114,10 @@ abstract class FileDumper implements DumperInterface
|
||||
*
|
||||
* @deprecated since version 2.8, to be removed in 3.0. Overwrite formatCatalogue() instead.
|
||||
*/
|
||||
abstract protected function format(MessageCatalogue $messages, $domain);
|
||||
protected function format(MessageCatalogue $messages, $domain)
|
||||
{
|
||||
throw new \LogicException('The "FileDumper::format" method needs to be overwritten, you should implement either "format" or "formatCatalogue".');
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the file extension of the dumper.
|
||||
|
@ -63,11 +63,6 @@ class ConcreteFileDumper extends FileDumper
|
||||
return '';
|
||||
}
|
||||
|
||||
protected function format(MessageCatalogue $messages, $domain)
|
||||
{
|
||||
return $this->formatCatalogue($messages, $domain);
|
||||
}
|
||||
|
||||
protected function getExtension()
|
||||
{
|
||||
return 'concrete';
|
||||
|
Reference in New Issue
Block a user