Skip to content

Commit

Permalink
This patch fixes a regression bug for scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
wjgilmore committed Jul 1, 2020
1 parent e4390ac commit f8f3902
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Events/ApiEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@ public function __construct($path, $request, $response = null, $resource = null)
{
$this->request = $request;
$this->response = $response;

if (empty($resource)) {
$name = strtolower($path . '.' . $request->getMethod());
} else {
$name = strtolower($path . '.' . $resource . '.' . $request->getMethod());
}
$name = strtolower($path . '.' . $request->getMethod());
parent::__construct($name, $resource);
}

Expand Down

0 comments on commit f8f3902

Please sign in to comment.