コード例 #1
0
 /**
  * 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());
 }
コード例 #2
0
ファイル: StatsCommand.php プロジェクト: snapt/snapr
 /**
  * Get the process info.
  *
  * @return string
  */
 public function getInfo()
 {
     $socket = new Socket();
     return $socket->getInfo();
 }