Skip to content

Commit 07d53e2

Browse files
committed
#146 Addition of a setter for the 'locale' data on the importer model.
This allows to configure the locale used by the underlying model.
1 parent e4cb43f commit 07d53e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Model/Importer.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ public function setIgnoreDuplicates(bool $value): self
153153
return $this;
154154
}
155155

156+
/**
157+
* @throws RuntimeException
158+
*/
159+
public function setImportLocale(?string $locale): self
160+
{
161+
$this->assertImportModelNotInitialized();
162+
$this->settings['locale'] = $locale;
163+
return $this;
164+
}
165+
156166
/**
157167
* @throws RuntimeException
158168
*/

0 commit comments

Comments
 (0)