3namespace Bitrix\Location\Service;
5use Bitrix\Location\Common\RepositoryTrait;
6use \Bitrix\Location\Entity;
7use Bitrix\Location\Exception\RuntimeException;
8use Bitrix\Location\Common\BaseService;
9use Bitrix\Location\Infrastructure\Service\Config\Container;
10use Bitrix\Location\Repository\FormatRepository;
27 private $defaultFormatCode;
61 public function findAll(
string $languageId)
67 $result = $this->repository->findAll($languageId);
90 ->findByCode($this->defaultFormatCode, $languageId);
108 return $this->defaultFormatCode;
117 $this->defaultFormatCode = $defaultFormatCode;
128 $this->defaultFormatCode =
$config->get(
'defaultFormatCode');
129 $this->setRepository(
$config->get(
'repository'));
processException(\Exception $exception)