app\ControllerProvider::cache PHP Méthode

cache() public méthode

public cache ( Silex\Application $app )
$app Silex\Application
    public function cache(App $app)
    {
        $response = new Response($app['twig']->render('cache.html.twig', array('date' => date('Y-M-d h:i:s'))));
        $response->setTtl(10);
        return $response;
    }