silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
719 stars 823 forks source link

RFC: App object to encapsulate global state and services #6681

Closed chillu closed 7 years ago

chillu commented 7 years ago

Acceptance Criteria

Excludes

Notes

RFC Versions

Related

Tasks

WIP branches

sminnee commented 7 years ago

Do we have to fix cookies (and everything else related to the controller stack) as part of this ticket? It feels like it's turning into a cascade of "fix everything annoying" ;-)

If I were to refactor cookie, I'd probably have a middleware that

However that's well beyond the scope of this card

tractorcow commented 7 years ago

I've had a discussion with @chillu and decided to update the scope of the request / response refactor.

https://gist.github.com/tractorcow/2bb76d12074b885b9b2923dafa07ae88

Cookies API remains unchanged, but we will move Session::inst() into $request->getSession().

chillu commented 7 years ago

Old ACs:

New ACs:

tractorcow commented 7 years ago

Nice +1 thanks @chillu

tractorcow commented 7 years ago

Just so that everyone here is clear, we are going to close and accept this RFC pretty early next week. Please get in your concerns early if you have anything you would like to add.

tractorcow commented 7 years ago

Hello, the discussion seems to have tailed off, and given our general agreement on approach we will close this discussion and move onto implementation.

tractorcow commented 7 years ago

todo : update A/C and task.

tractorcow commented 7 years ago

I've just updated the tasks for this story. Quite a lot of progress made so far!

tractorcow commented 7 years ago

I've added WIP branches to the initial story body.

New progress:

chillu commented 7 years ago

🎉🎉🎉