These are chat archives for ppi/framework

21st
Nov 2015
Korvin Szanto
@KorvinSzanto
Nov 21 2015 00:19
@dragoonis a redirect response is just a response with the 301/302 status code and a location header
If you want to make that easier, maybe make a factory for it that takes a response and returns a modified version
$redirect_factory->redirect($response, $url,
Hard to type that out on a phone
Paul Dragoonis
@dragoonis
Nov 21 2015 10:43
Typically passing a response to a redirect function isn’t necessary. In ZF2 and other frameworks, it’s just a matter of $this->redirect($routeName);
Symfony:
public function indexAction() {
    return $this->redirectToRoute('homepage’);
Korvin Szanto
@KorvinSzanto
Nov 21 2015 16:26
Right typically responses aren't immutable in php
I