/** * Get the process info. * * @param Application $app The silex app. * * @return string */ public function getInfo(Application $app) { $socket = new Socket(); return $app->json($socket->getInfo()); }
/** * Get the process info. * * @return string */ public function getInfo() { $socket = new Socket(); return $socket->getInfo(); }