Skip to content

Commit 16f83df

Browse files
committed
Update LocalizedRoutesServiceProvider.php
1 parent 7d33ded commit 16f83df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LocalizedRoutesServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ protected function registerUrlGenerator()
100100

101101
$url = new UrlGenerator(
102102
$routes, $app->rebinding(
103-
'request', $this->requestRebinder()
104-
), $app['config']['app.asset_url']
103+
'request', $this->requestRebinder()
104+
), $app['config']['app.asset_url']
105105
);
106106

107107
// Next we will set a few service resolvers on the URL generator so it can
108108
// get the information it needs to function. This just provides some of
109109
// the convenience features to this URL generator like "signed" URLs.
110110
$url->setSessionResolver(function () {
111-
return $this->app['session'];
111+
return $this->app['session'] ?? null;
112112
});
113113

114114
$url->setKeyResolver(function () {

0 commit comments

Comments
 (0)