@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function register() |
15 | 15 | { |
16 | - if (! $this->app->configurationIsCached()) { |
|
16 | + if (!$this->app->configurationIsCached()) { |
|
17 | 17 | $this->configureDefaults(); |
18 | 18 | } |
19 | 19 | |
@@ -27,20 +27,20 @@ discard block |
||
27 | 27 | */ |
28 | 28 | protected function configureDefaults() |
29 | 29 | { |
30 | - $config = $this->app['config']; |
|
30 | + $config = $this->app[ 'config' ]; |
|
31 | 31 | |
32 | 32 | // Append "app.domains" |
33 | - $config['app.domains'] = array_map(function ($value) { |
|
33 | + $config[ 'app.domains' ] = array_map(function($value) { |
|
34 | 34 | if (is_string($domain = parse_url($value, PHP_URL_HOST))) { |
35 | 35 | if (str_contains($domain, '.')) { |
36 | 36 | return $domain; |
37 | 37 | } |
38 | 38 | } |
39 | - }, $config['support.url']); |
|
39 | + }, $config[ 'support.url' ]); |
|
40 | 40 | |
41 | 41 | // Set "mail.from.name" |
42 | - if ($config['mail.from.name'] == 'Example') { |
|
43 | - $config['mail.from.name'] = $config['app.name']; |
|
42 | + if ($config[ 'mail.from.name' ] == 'Example') { |
|
43 | + $config[ 'mail.from.name' ] = $config[ 'app.name' ]; |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 | |
@@ -49,19 +49,19 @@ discard block |
||
49 | 49 | */ |
50 | 50 | protected function configureForCurrentRequest() |
51 | 51 | { |
52 | - $config = $this->app['config']; |
|
53 | - $request = $this->app['request']; |
|
52 | + $config = $this->app[ 'config' ]; |
|
53 | + $request = $this->app[ 'request' ]; |
|
54 | 54 | |
55 | - $identifier = array_search($request->getHost(), $config['app.domains']); |
|
55 | + $identifier = array_search($request->getHost(), $config[ 'app.domains' ]); |
|
56 | 56 | |
57 | 57 | // Configure the cookie domain |
58 | 58 | if ($identifier && $config->has('support.cookie_domain.'.$identifier)) { |
59 | - $config['session.domain'] = $config['support.cookie_domain.'.$identifier]; |
|
59 | + $config[ 'session.domain' ] = $config[ 'support.cookie_domain.'.$identifier ]; |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | // Configure the auth defaults |
63 | - if ($identifier && is_array($auth = $config['support.auth.'.$identifier])) { |
|
64 | - $config['auth.defaults'] = $auth; |
|
63 | + if ($identifier && is_array($auth = $config[ 'support.auth.'.$identifier ])) { |
|
64 | + $config[ 'auth.defaults' ] = $auth; |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 | } |