private function injectLiveReload(Response $response)
    {
        $content = $response->getContent();
        $content = str_replace('</body>', '
            <script>
                document.write(\'<script src="http://\' + (location.host || \'localhost\').split(\':\')[0] + \':35729/livereload.js?snipver=1"></\' + \'script>\')
            </script></body>', $content);
        $response->setContent($content);
    }