Skip to content

Commit

Permalink
Add zf3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Witold Wasiczko committed May 24, 2017
1 parent 5fff27d commit e9c5bc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"psr/http-message": "^1.0",
"phpunit/phpunit": "^5.6 || ^6.0",
"zendframework/zend-http": "^2.4",
"zendframework/zend-eventmanager": "^2.4",
"zendframework/zend-mvc": "^2.4",
"zendframework/zend-eventmanager": "^2.4 || ^3.0",
"zendframework/zend-mvc": "^2.4 || ^3.0",
"zendframework/zend-diactoros": "^1.3.3",
"zendframework/zend-modulemanager": "^2.4"
},
"suggest": {
"zendframework/zend-http": "To use rstgroup/http-method-override as ZF2 module",
"zendframework/zend-eventmanager": "To use rstgroup/http-method-override as ZF2 module",
"zendframework/zend-mvc": "To use rstgroup/http-method-override as ZF2 module",
"zendframework/zend-modulemanager": "To use rstgroup/http-method-override as ZF2 module",
"zendframework/zend-http": "To use rstgroup/http-method-override as ZF module",
"zendframework/zend-eventmanager": "To use rstgroup/http-method-override as ZF module",
"zendframework/zend-mvc": "To use rstgroup/http-method-override as ZF module",
"zendframework/zend-modulemanager": "To use rstgroup/http-method-override as ZF module",
"psr/http-message": "To use rstgroup/http-method-override as middleware"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/HttpMethodOverrideListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(HttpMethodOverrideService $httpMethodOverride)
/**
* @param EventManagerInterface $events
*/
public function attach(EventManagerInterface $events)
public function attach(EventManagerInterface $events, $priority = 1)
{
$this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, [$this, 'override'], 100);
}
Expand Down

0 comments on commit e9c5bc3

Please sign in to comment.