예제 #1
0
 /**
  * Get a session or all the sessions information
  * Warning! This can return a huge amount of data
  *
  * @param Application $app       The silex app.
  * @param Application $app       The silex app.
  *
  * @return string
  */
 public function getSession(Application $app, $id = '')
 {
     $socket = new Socket();
     return $app->json($socket->getSession($id));
 }