Skip to content
Permalink
Browse files

add missing deprecation into Event::data()

  • Loading branch information...
saeideng committed Jun 5, 2018
1 parent 5bceac6 commit 8a98ec8ed74208d630c169abe62af85fbdd1290f
@@ -242,6 +242,8 @@ public function setResult($value = null)
*/
public function data($key = null)
{
deprecationWarning('Event::data() is deprecated. Use Event::getData() instead.');
return $this->getData($key);
}
@@ -88,7 +88,7 @@ public function testCascadingEvents()
]);
EventManager::instance()->dispatch($event);
$this->assertEquals(2, $event->data('counter'));
$this->assertEquals(2, $event->getData('counter'));
}
/**
@@ -54,7 +54,7 @@ public function authenticate(ServerRequest $request, Response $response)
public function afterIdentify(Event $event, array $user)
{
$this->callStack[] = __FUNCTION__;
$this->authenticationProvider = $event->data(1);
$this->authenticationProvider = $event->getData(1);
if (!empty($this->modifiedUser)) {
return $user + ['extra' => 'foo'];

0 comments on commit 8a98ec8

Please sign in to comment.
You can’t perform that action at this time.