Skip to content

Commit cd8a8de

Browse files
committed
Strictly throw exception for config conflict
1 parent cbf51d8 commit cd8a8de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LaravelEssentialsEntryServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function register(): void
3131

3232
// localized-routes.php 파일 존재 여부 확인
3333
if (file_exists(config_path('localized-routes.php'))) {
34-
$this->app['log']->warning(
34+
throw new \Exception(
3535
"[OPGG Essentials Entry] localized-routes.php 파일이 존재합니다. " .
3636
"essentials-entry 패키지의 언어 설정과 충돌을 방지하기 위해 해당 파일을 삭제해주세요."
3737
);
@@ -167,6 +167,7 @@ public static function overrideLocalizationConfig(): void
167167
// \CodeZero\LocalizedRoutes\Middleware\Detectors\BrowserDetector::class,
168168
\CodeZero\LocalizedRoutes\Middleware\Detectors\AppDetector::class, //=> required
169169
]);
170+
Config::set('localized-routes.check_raw_cookie', true);
170171
Config::set('localized-routes.cookie_name', $config['cookie']['name']);
171172
Config::set('localized-routes.cookie_minutes', $config['cookie']['minutes']);
172173
Config::set('localized-routes.stores', [

0 commit comments

Comments
 (0)