MenaraSolutions\Geographer\Services\DefaultManager::__construct PHP Метод

__construct() публичный Метод

DefaultConfig constructor.
public __construct ( string $path = null, MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface $translator = null, MenaraSolutions\Geographer\Contracts\RepositoryInterface $repository = null )
$path string
$translator MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface
$repository MenaraSolutions\Geographer\Contracts\RepositoryInterface
    public function __construct($path = null, TranslationAgencyInterface $translator = null, RepositoryInterface $repository = null)
    {
        $this->path = $path ?: self::getDefaultPrefix();
        $this->repository = $repository ?: new File();
        $this->translator = $translator ?: new TranslationAgency($this->path, $this->repository);
    }