Skip to content

[5.8] Fix session resolver in RoutingServiceProvider#28438

Merged
taylorotwell merged 3 commits into
laravel:5.8from
golubkovden:5.8
May 8, 2019
Merged

[5.8] Fix session resolver in RoutingServiceProvider#28438
taylorotwell merged 3 commits into
laravel:5.8from
golubkovden:5.8

Conversation

@golubkovden
Copy link
Copy Markdown
Contributor

Currently on validation exception FormRequest tries to resolve previous url from session. But if we don't use SessionServiceProvider then application fails with exception Class session does not exist.
The problem in sessionResolver that always tries to resolve session in application.

@driesvints
Copy link
Copy Markdown
Member

Can you explain your use case a bit more? In what situation do you need to disable the SessionServiceProvider?

@driesvints
Copy link
Copy Markdown
Member

Hmm, I think I see what you mean. In this case the session component is hard wired with the routing while there's a check performed in UrlGenerator to see if it's even set in the first place.

@golubkovden
Copy link
Copy Markdown
Contributor Author

Hmm, I think I see what you mean. In this case the session component is hard wired with the routing while there's a check performed in UrlGenerator to see if it's even set in the first place.

Yes, you're right

@taylorotwell taylorotwell merged commit 6eadc33 into laravel:5.8 May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants