getFromSocket() public static method

Get the correct version of a configurator from a socket
public static getFromSocket ( Nexcessnet_Turpentine_Model_Varnish_Admin_Socket $socket ) : Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract
$socket Nexcessnet_Turpentine_Model_Varnish_Admin_Socket
return Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract
示例#1
0
 /**
  * Get a configurator based on the first socket in the server list
  *
  * @return Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract
  */
 public function getConfigurator()
 {
     $sockets = Mage::helper('turpentine/varnish')->getSockets();
     $cfgr = Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract::getFromSocket($sockets[0]);
     return $cfgr;
 }