File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 8
8
use CodeZero \LocalizedRoutes \Macros \UriTranslationMacro ;
9
9
use CodeZero \LocalizedRoutes \Macros \LocalizedRoutesMacro ;
10
10
use CodeZero \Localizer \Localizer ;
11
+ use CodeZero \Localizer \LocalizerServiceProvider ;
11
12
use Illuminate \Support \ServiceProvider ;
12
13
13
14
class LocalizedRoutesServiceProvider extends ServiceProvider
@@ -40,6 +41,7 @@ public function register()
40
41
$ this ->mergeConfig ();
41
42
$ this ->registerUrlGenerator ();
42
43
$ this ->registerLocaleHandler ();
44
+ $ this ->registerProviders ();
43
45
}
44
46
45
47
/**
@@ -79,6 +81,16 @@ protected function mergeConfig()
79
81
$ this ->mergeConfigFrom (__DIR__ ."/../config/ {$ this ->name }.php " , $ this ->name );
80
82
}
81
83
84
+ /**
85
+ * Registers the package dependencies
86
+ *
87
+ * @return void
88
+ */
89
+ protected function registerProviders ()
90
+ {
91
+ $ this ->app ->register (LocalizerServiceProvider::class);
92
+ }
93
+
82
94
/**
83
95
* Register the URL generator service.
84
96
*
You can’t perform that action at this time.
0 commit comments