Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
Cleaning up event constructor duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed May 22, 2014
1 parent 57175fe commit f723ff4
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,14 @@ public function __construct(
$requestedName,
$canonicalName
) {
$this->serviceLocator = $serviceLocator;
$this->instance = $instance;
$this->requestedName = (string) $requestedName;
$this->canonicalName = (string) $canonicalName;
$this->trace = debug_backtrace(true);

parent::__construct(
$eventName,
$serviceLocator,
$this->serviceLocator = $serviceLocator,
array(
'instance' => $instance,
'requested_name' => $requestedName,
'canonical_name' => $canonicalName,
'trace' => $this->trace,
'instance' => $this->instance = $instance,
'requested_name' => $this->requestedName = $requestedName,
'canonical_name' => $this->canonicalName = $canonicalName,
'trace' => $this->trace = debug_backtrace(true),
)
);
}
Expand Down

0 comments on commit f723ff4

Please sign in to comment.