protected function configureSharedCache(Response $response, array $tags = [], $smaxage = null)
    {
        if (!empty($tags)) {
            $this->get('ekyna_core.cache.tag_manager')->addTags($tags);
        }
        $smaxage = intval($smaxage);
        if (0 >= $smaxage) {
            $smaxage = $this->container->getParameter('ekyna_core.cache_config')['default_smaxage'];
        }
        return $response->setSharedMaxAge($smaxage);
    }
protected function configureSharedCache(Response $response, array $tags = [], $smaxage = null)
    {
        if (!empty($tags)) {
            $this->get('ekyna_core.cache.tag_manager')->addTags($tags);
        }
        $smaxage = intval($smaxage);
        if (0 >= $smaxage) {
            $smaxage = $this->container->getParameter('ekyna_core.cache_config')['default_smaxage'];
        }
        return $response->setSharedMaxAge($smaxage);
    }
protected function configureSharedCache ( Response $ response , array $ tags = [ ] , $ smaxage = null ) { if ( ! empty ( $ tags ) ) { $ this -> get ( 'ekyna_core.cache.tag_manager' ) -> addTags ( $ tags ) ; } $ smaxage = intval ( $ smaxage ) ; if ( 0 >= $ smaxage ) { $ smaxage = $ this -> container -> getParameter ( 'ekyna_core.cache_config' ) [ 'default_smaxage' ] ; } return $ response -> setSharedMaxAge ( $ smaxage ) ; }
Adds http cache tags and sets the shared max age.

@param Response $response
@param array $tags
@param int $smaxage
@return Response;
Adds http cache tags and sets the shared max age .