11
11
use Illuminate \Foundation \AliasLoader ;
12
12
use Illuminate \Foundation \PackageManifest ;
13
13
use Illuminate \Foundation \ProviderRepository ;
14
+ use Illuminate \Log \Context \ContextServiceProvider ;
14
15
use Carbon \Laravel \ServiceProvider as CarbonServiceProvider ;
15
16
use Illuminate \Support \Env ;
16
17
use Throwable ;
@@ -46,11 +47,11 @@ protected function registerBaseServiceProviders()
46
47
47
48
$ this ->register (new LogServiceProvider ($ this ));
48
49
50
+ $ this ->register (new ContextServiceProvider ($ this ));
51
+
49
52
$ this ->register (new RoutingServiceProvider ($ this ));
50
53
51
54
$ this ->register (new ExecutionContextProvider ($ this ));
52
-
53
- $ this ->register (new CarbonServiceProvider ($ this ));
54
55
}
55
56
56
57
/**
@@ -192,20 +193,6 @@ protected function normalizeCachePath($key, $default)
192
193
: $ this ->basePath ($ env );
193
194
}
194
195
195
- /**
196
- * joinPaths together
197
- *
198
- * @todo Can be removed if Laravel >= 10
199
- *
200
- * @param string $basePath
201
- * @param string $path
202
- * @return string
203
- */
204
- public function joinPaths ($ basePath , $ path = '' )
205
- {
206
- return $ basePath .($ path != '' ? DIRECTORY_SEPARATOR .ltrim ($ path , DIRECTORY_SEPARATOR ) : '' );
207
- }
208
-
209
196
/**
210
197
* before logic is called before the router runs.
211
198
* @param \Closure|string $callback
@@ -312,6 +299,8 @@ public function registerConfiguredProviders()
312
299
313
300
(new ProviderRepository ($ this , new Filesystem , $ this ->getCachedServicesPath ()))
314
301
->load ($ providers ->collapse ()->toArray ());
302
+
303
+ $ this ->fireAppCallbacks ($ this ->registeredCallbacks );
315
304
}
316
305
317
306
/**
@@ -332,7 +321,7 @@ public function registerCoreContainerAliases()
332
321
'db.schema ' => [\Illuminate \Database \Schema \Builder::class],
333
322
'encrypter ' => [\Illuminate \Encryption \Encrypter::class, \Illuminate \Contracts \Encryption \Encrypter::class],
334
323
'events ' => [\October \Rain \Events \Dispatcher::class, \Illuminate \Contracts \Events \Dispatcher::class],
335
- 'files ' => [\Illuminate \Filesystem \Filesystem::class],
324
+ 'files ' => [\October \ Rain \ Filesystem \Filesystem::class, \ Illuminate \Filesystem \Filesystem::class],
336
325
'filesystem ' => [\Illuminate \Filesystem \FilesystemManager::class, \Illuminate \Contracts \Filesystem \Factory::class],
337
326
'filesystem.disk ' => [\Illuminate \Contracts \Filesystem \Filesystem::class],
338
327
'filesystem.cloud ' => [\Illuminate \Contracts \Filesystem \Cloud::class],
0 commit comments