* @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:----evaUi+JPH5iXzkYCU+GExAX9rz6x2KVt6yYyxF4lZxWr84RSvIBFXOiXXBMYLE1pSvRtEM8BprYQdTUn+N4DDTdqlR2aRgi6r8VZdsV/mD8/9vk7Y/zonC7m85gYK9nEwyo6DQLjWcAPCiEom8a00QVp863Z25qeNssvZTDMiPhGPqvkgdWEN1HammzME8LwCjrVqFF1lVC7/+giXFaaivXzxkvZI3MBNgSnPKTg1DhUELa/21qlcYkE5Mn8BmZTWsh4gifLI0fjx+lG3OA3Izk3/pUC23eHNaU5/IC00eH6Rc77EdAH6DAaIo5S357w8JRN2RpeEOxiYXwMOfhAPd5rw7tuLVlRYXU8my3Eb/fk9SnYjSVbLLu3u1zMeJ4M12M9kBtCpTMDX//g5Eh0XsDCG2LPYofeIhgv15lNr36yBEk+/1/0QfRNiUg8SSfxp8ktgS+ISrc3yXU90Vulr/EOlVsZ4j8NikpV1uCH3gsnG6FrjruPgzFNKii/qA5a0SqfBJCOc+mi/z962sIQgnUX3igJ1jI2B7gzf19j4aJg1Ikx2tvu3e7yIcQYm+laXAF6nhpI7EFJ4ouzesu10Bsa8IJOID+tBKmA1kRv/uQ0isLpWcGU4C3WDSmbsejNPd2NG+HvBvJZ1SkdPIF5hpNQx5fJZkOGi+BwVqeWWCU=----ATTACHMENT:----MTgzMTU2MzkwMTkxNjcxMCAxODQyMjIwMTA2NDE5NDI4IDkxNzY0OTYyNzkyNTk1MDc=