use Pagerfanta\Exception\OutOfRangeCurrentPageException;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
+use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
$message = 'flashes.entry.notice.entry_archived';
}
+ if ($request->query->get('some_var_name')) {
+
+ return new JsonResponse($this->get('translator')->trans($message));
+ }
+
$this->get('session')->getFlashBag()->add(
'notice',
$message
return $this->redirect($redirectUrl);
}
+
+
/**
* Changes starred status for an entry.
*