phalcon-swoole icon indicating copy to clipboard operation
phalcon-swoole copied to clipboard

run example, report error ?

Open javacty opened this issue 8 years ago • 1 comments

PHP Fatal error: Class PhalconSwoole\Request contains 4 abstract methods and must therefore be declared abstract or implement the remaining methods (Phalcon\Http\RequestInterface::getPort, Phalcon\Http\RequestInterface::isPurge, Phalcon\Http\RequestInterface::isTrace, ...) in /opt/app/vendor/HessianZ/phalcon-swoole/src/PhalconSwoole/Request.php on line 14

javacty avatar Sep 26 '16 07:09 javacty

You must implement abstract method. Add this on vendor/HessianZ/phalcon-swoole/src/PhalconSwoole/Request.php

public function getPort() {
      return $this->request->header['port'];
  }
  public function isPurge() {
      return $this->isMethod('PURGE');
  }
  public function isTrace() {
      return $this->isMethod('TRACE');
  }
  public function isConnect() {
      return $this->isMethod('CONNECT');
  }

sudostryker avatar Nov 04 '17 11:11 sudostryker