src/Validation/Execution/JsonApiErrorCollection.php 1 location
|
@@ 115-124 (lines=10) @@
|
| 112 |
|
/** |
| 113 |
|
* @return FormatterInterface |
| 114 |
|
*/ |
| 115 |
|
private function getMessageFormatter(): FormatterInterface |
| 116 |
|
{ |
| 117 |
|
if ($this->messageFormatter === null) { |
| 118 |
|
/** @var FormatterFactoryInterface $factory */ |
| 119 |
|
$factory = $this->getContainer()->get(FormatterFactoryInterface::class); |
| 120 |
|
$this->messageFormatter = $factory->createFormatter(Validator::RESOURCES_NAMESPACE); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
return $this->messageFormatter; |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
/** |
| 127 |
|
* @return ContainerInterface |
src/Validation/Validator.php 1 location
|
@@ 735-744 (lines=10) @@
|
| 732 |
|
/** |
| 733 |
|
* @return FormatterInterface |
| 734 |
|
*/ |
| 735 |
|
protected function getMessageFormatter(): FormatterInterface |
| 736 |
|
{ |
| 737 |
|
if ($this->messageFormatter === null) { |
| 738 |
|
/** @var FormatterFactoryInterface $factory */ |
| 739 |
|
$factory = $this->getContainer()->get(FormatterFactoryInterface::class); |
| 740 |
|
$this->messageFormatter = $factory->createFormatter(static::RESOURCES_NAMESPACE); |
| 741 |
|
} |
| 742 |
|
|
| 743 |
|
return $this->messageFormatter; |
| 744 |
|
} |
| 745 |
|
|
| 746 |
|
/** |
| 747 |
|
* @param string $name |