* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class RequestMethodChoice implements FilterInterface { protected $requestMethods; protected $filter; public function __construct(array $requestMethods, FilterInterface $filter) { $this->requestMethods = $requestMethods; $this->filter = $filter; } public function handle(RequestInterface $request, ResponseInterface $response, FilterChainInterface $filterChain) { if (in_array($request->getMethod(), $this->requestMethods)) { $this->filter->handle($request, $response, $filterChain); } else { $filterChain->handle($request, $response); } } } __halt_compiler();----SIGNATURE:----g1p+NVOtVYYjcgCOBro1VfQtU478IWmYz4hOHGQC1rLsx2e6LOnfKApdktKo+61QXYoamkYNS7Kvla16vC0ESSOu7kUimXMQLyWVXTKBlxwAEuLSXS0mVkd/CLjsCnFK2L0wfuIAMSGuK6I1Ur31PO/CX4Oqa3ECcm0OhCvf78eRt/d+eKo3JSqDclBD7Hc2wdUtRtAAkU5yqpYyqSgni9Hc+pGv7WJiWM1zB6R1dlHMS42TenYg/sMMwYIxNDU3R6g0xdLUIczANMQUL3uEp0ZhJnxCzb/UACKywQHvuMo9wJVZdTB0JmIVDjtu0ZgvwkQsgmrbQY0qKxlRduXOlafBD4WYVFuT4FjnA1VvvyHQSNh4DRKsXJRgMK9J9ejMvkoAS2MCERPV5M6eMNlvcoZn0EdttYMHBd8QOYE5aITZzo7seEUAi4zw8Fnt4iemfejC8UX5CVXBYSij6NQYDd2ZkRmNjKEUfVm331Djv8TaQBi7aYKrrVR2HSFYnB5qRSzCbisdBDELCm2hIf/mqoJBNcK62QGz7GwbleHu8AHyspWEMxZLRur0On39Fiqf/brEWxD9mWOOR54dhSrAPmwNIrYz38YZ9YNrHCQyGnwLUDHmOKNRtcOjTqhm+1EtCApUfl4ZStuC+MymYfER+cpfwT+sn+6aIcEVb5Vvccs=----ATTACHMENT:----NzE1MjUxNjI4MzgzMzE0NyAxMjc2MTY2MDg1NDg4OSA3MjMyMDY1NzU5MzIyOTAy