symfony-cmf/cmf-sandbox — comment on commit f35399aa027a5a48053ba78ea3505014f80854f5
File:  line 0
By dbu:

for some reason i get an exception whenever i do

return new (Redirect)Response;

even when i do it in the content controller that works fine with return $this->view->render...

ErrorException: Notice: serialize(): "controller" returned as member variable from __sleep() but does not exist in /home/david/liip/symfony-cmf/cmf-sandbox/vendor/symfony/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php line 29

at serialize (array('format' => 'html', 'content' => '', 'content_type' => 'text/html; charset=UTF-8', 'status_code' => '200', 'request_query' => array(), 'request_request' => array(), 'request_headers' => array('host' => array('cmf.lo'), 'user-agent' => array('Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.10 (maverick) Firefox/3.6.24'), 'accept' => array('text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'), 'accept-language' => array('de-ch,de;q=0.8,en-gb;q=0.6,en-us;q=0.4,en;q=0.2'), 'accept-encoding' => array('gzip,deflate'), 'accept-charset' => array('ISO-8859-1,utf-8;q=0.7,*;q=0.7'), 'keep-alive' => array('115'), 'connection' => array(*DEEP NESTED ARRAY*), 'referer' => array(*DEEP NESTED ARRAY*), 'cookie' => array(*DEEP NESTED ARRAY*), 'x-php-ob-level' => array(*DEEP NESTED ARRAY*)), 'request_server' => array('HTTP_HOST' => 'cmf.lo', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.10 (maverick) Firefox/3.6.24', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE' => 'de-ch,de;q=0.8,en-gb;q=0.6,en-us;q=0.4,en;q=0.2', 'HTTP_ACCEPT_ENCODING' => 'gzip,deflate', 'HTTP_ACCEPT_CHARSET' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_KEEP_ALIVE' => '115', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_REFERER' => 'http://cmf.lo/app_dev.php/demo', 'HTTP_COOKIE' => 'PHPSESSID=6ev7llg9jfv2pote1v6v8t0fh2', 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'SERVER_SIGNATURE' => '

Apache/2.2.16 (Ubuntu) Server at cmf.lo Port 80

', 'SERVER_SOFTWARE' => 'Apache/2.2.16 (Ubuntu)', 'SERVER_NAME' => 'cmf.lo', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '127.0.0.1', 'DOCUMENT_ROOT' => '/home/david/liip/symfony-cmf/cmf-sandbox/web', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/david/liip/symfony-cmf/cmf-sandbox/web/app_dev.php', 'REMOTE_PORT' => '56736', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/app_dev.php/short1', 'SCRIPT_NAME' => '/app_dev.php', 'PATH_INFO' => '/short1', 'PATH_TRANSLATED' => 'redirect:/app.php', 'PHP_SELF' => '/app_dev.php/short1', 'REQUEST_TIME' => '1325686140'), 'request_cookies' => array('PHPSESSID' => '6ev7llg9jfv2pote1v6v8t0fh2'), 'request_attributes' => array('_controller' => 'symfony_cmf_chain_routing.redirect_controller:redirectAction', 'contentDocument' => 'Object(Symfony\Cmf\Bundle\ChainRoutingBundle\Document\RedirectRoute)', 'path' => '/short1', '_route' => 'whatever', '_route_params' => array('_controller' => 'symfony_cmf_chain_routing.redirect_controller:redirectAction', 'contentDocument' => object(RedirectRoute), 'path' => '/short1')), 'response_headers' => array('cache-control' => array('no-cache'), 'date' => array('Wed, 04 Jan 2012 14:09:01 GMT'), 'content-type' => array('text/html; charset=UTF-8'), 'x-debug-token' => array(*DEEP NESTED ARRAY*)), 'session_attributes' => array(), 'path_info' => '/short1', 'route' => 'whatever', 'controller' => array('class' => 'Symfony\Cmf\Bundle\ChainRoutingBundle\Controller\RedirectController', 'method' => 'redirectAction', 'file' => '/home/david/liip/symfony-cmf/cmf-sandbox/vendor/bundles/Symfony/Cmf/Bundle/ChainRoutingBundle/Controller/RedirectController.php', 'line' => '35')))
in /home/david/liip/symfony-cmf/cmf-sandbox/vendor/symfony/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php at line 29