Exemplo n.º 1
0
 /**
  * Controller for meteor.overview.
  */
 public function siteInfo()
 {
     $result = ['cookieName' => $this->sessionManager->getName(), 'anonymousName' => $this->userSettings->get('anonymous')];
     $result = $this->serializer->serialize($result, 'json');
     $response = new Response($result, Response::HTTP_OK);
     $response->headers->set('Content-type', 'application/json');
     return $response;
 }