public function get($path = null) { // header("Refresh: 60"); $servers = \Koshatul\Config\Config::Get('haproxyweb/server'); $stats = new \Koshatul\HAProxyWeb\Helper\GetStats($servers); $stats->process(); $output = ""; $output .= $this->_head(); $output .= $this->body($stats->getData()); $output .= $this->_foot(); echo $output; }
protected function execute(InputInterface $input, OutputInterface $output) { $stats = new \Koshatul\HAProxyWeb\Helper\GetStats($input->getArgument('server')); $stats->process(); }