示例#1
0
 /**
  * Gets the plugin data that should be rendered on the output protocol stream.
  * 
  * @param Glimpse $glimpse The current Glimpse instance.
  * @return array Array conforming to the Glimpse protocol definition.
  */
 public function getData(Glimpse $glimpse)
 {
     $info = $glimpse->retrievePhpInfo();
     $data = $info["PHP Configuration"];
     $data['Loaded extensions'] = get_loaded_extensions();
     $data['Loaded ZEND extensions'] = get_loaded_extensions(true);
     return array("Config" => count($data) > 0 ? $data : null);
 }
 /**
  * Gets the plugin data that should be rendered on the output protocol stream.
  * 
  * @param Glimpse $glimpse The current Glimpse instance.
  * @return array Array conforming to the Glimpse protocol definition.
  */
 public function getData(Glimpse $glimpse)
 {
     $info = $glimpse->retrievePhpInfo();
     $data = $info["Environment"];
     return array("Environment" => count($data) > 0 ? $data : null);
 }