コード例 #1
0
ファイル: FOSUserProvider.php プロジェクト: HeliosDX/BlogWim1
 /**
  * {@inheritdoc}
  */
 public function getSubProtocols()
 {
     if ($this->_app instanceof WsServerInterface) {
         return $this->_app->getSubProtocols();
     } else {
         return array();
     }
 }
コード例 #2
0
 /**
  * @param string
  * @return boolean
  */
 public function isSubProtocolSupported($name)
 {
     if (!$this->isSpGenerated) {
         if ($this->component instanceof WsServerInterface) {
             $this->acceptedSubProtocols = array_flip($this->component->getSubProtocols());
         }
         $this->isSpGenerated = true;
     }
     return array_key_exists($name, $this->acceptedSubProtocols);
 }
コード例 #3
0
 /**
  * @return mixed
  */
 public function getSubProtocols()
 {
     return $this->decorated->getSubProtocols();
 }