Skip to content

Commit 300a091

Browse files
committed
Moved the Notification API outside of Activity
1 parent c7cd41a commit 300a091

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/Github/Api/Activity/Notification.php renamed to lib/Github/Api/Notification.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<?php
22

3-
namespace Github\Api\Activity;
3+
namespace Github\Api;
44

55
use DateTime;
66
use DateTimeInterface;
7-
use Github\Api\AbstractApi;
87

98
/**
109
* API for accessing Notifications from your Git/Github repositories.

lib/Github/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
* @method Api\Issue issue()
2323
* @method Api\Issue issues()
2424
* @method Api\Markdown markdown()
25-
* @method Api\Activity\Notification notification()
26-
* @method Api\Activity\Notification notifications()
25+
* @method Api\Notification notification()
26+
* @method Api\Notification notifications()
2727
* @method Api\Organization organization()
2828
* @method Api\Organization organizations()
2929
* @method Api\PullRequest pr()
@@ -147,7 +147,7 @@ public function api($name)
147147

148148
case 'notification':
149149
case 'notifications':
150-
$api = new Api\Activity\Notification($this);
150+
$api = new Api\Notification($this);
151151
break;
152152

153153
case 'organization':

0 commit comments

Comments
 (0)