Skip to content

Commit dda97c2

Browse files
committed
Did some more renaming
1 parent 2cb0494 commit dda97c2

16 files changed

+38
-38
lines changed

docs/reference/Application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Alternatively you can obtain the `Facebook\Application` entity from the [`Facebo
1616

1717
```php
1818
$fb = new Facebook\Facebook([/* . . . */]);
19-
$fbApp = $fb->getApp();
19+
$fbApp = $fb->getApplication();
2020
```
2121

2222
You'll rarely be using the `Application` entity directly unless you're doing some extreme customizations of the SDK for PHP. But this entity plays an important role in the internal workings of the SDK for PHP.

docs/reference/BatchRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $requests = [
8686
'foo' => $fb->request('GET', '/me'),
8787
'bar' => $fb->request('POST', '/me/feed', [/* */]),
8888
];
89-
$batchRequest = new Facebook\BatchRequest($fb->getApp(), $requests, '{access-token}');
89+
$batchRequest = new Facebook\BatchRequest($fb->getApplication(), $requests, '{access-token}');
9090

9191
var_dump($batchRequest[0]);
9292
/*

docs/reference/Facebook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ $fb = new Facebook\Facebook([
129129

130130
# Instance Methods
131131

132-
## getApp()
132+
## getApplication()
133133
```php
134-
public Application getApp()
134+
public Application getApplication()
135135
```
136136
Returns the instance of `Facebook\Application` for the instantiated service.
137137

docs/reference/FacebookResponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public string getAccessToken()
4242
```
4343
Returns the access token that was used for the original request in the form of a string.
4444

45-
### getApp()
45+
### getApplication()
4646
```php
47-
public Facebook\FacebookApp getApp()
47+
public Facebook\Application getApplication()
4848
```
49-
Returns the [`Facebook\FacebookApp`](FacebookApp.md) entity that was used with the original request.
49+
Returns the [`Facebook\Application`](Application.md) entity that was used with the original request.
5050

5151
### getHttpStatusCode()
5252
```php

docs/reference/Request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ public setApp(Facebook\Application $app)
7373
```
7474
Sets the [`Facebook\Application`](Application.md) entity used with this request.
7575

76-
### getApp()
76+
### getApplication()
7777
```php
78-
public Facebook\Application getApp()
78+
public Facebook\Application getApplication()
7979
```
8080
Returns the [`Facebook\Application`](Application.md) entity used with this request.
8181

src/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function getAccessToken()
8686
}
8787

8888
/**
89-
* Serializes the App entity as a string.
89+
* Serializes the Application entity as a string.
9090
*
9191
* @return string
9292
*/
@@ -96,7 +96,7 @@ public function serialize()
9696
}
9797

9898
/**
99-
* Unserializes a string as a App entity.
99+
* Unserializes a string as an Application entity.
100100
*
101101
* @param string $serialized
102102
*/

src/Authentication/OAuth2Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class OAuth2Client
4141
const BASE_AUTHORIZATION_URL = 'https://www.facebook.com';
4242

4343
/**
44-
* The App entity.
44+
* The Application entity.
4545
*
4646
* @var Application
4747
*/

src/BatchRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,18 @@ public function add($request, $options = null)
112112
}
113113

114114
/**
115-
* Ensures that the App and access token fall back when missing.
115+
* Ensures that the Application and access token fall back when missing.
116116
*
117117
* @param Request $request
118118
*
119119
* @throws SDKException
120120
*/
121121
public function addFallbackDefaults(Request $request)
122122
{
123-
if (!$request->getApp()) {
124-
$app = $this->getApp();
123+
if (!$request->getApplication()) {
124+
$app = $this->getApplication();
125125
if (!$app) {
126-
throw new SDKException('Missing App on Request and no fallback detected on BatchRequest.');
126+
throw new SDKException('Missing Application on Request and no fallback detected on BatchRequest.');
127127
}
128128
$request->setApp($app);
129129
}

src/Facebook.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Facebook
6161
const APP_SECRET_ENV_NAME = 'FACEBOOK_APP_SECRET';
6262

6363
/**
64-
* @var Application the App entity
64+
* @var Application the Application entity
6565
*/
6666
protected $app;
6767

@@ -150,11 +150,11 @@ public function __construct(array $config = [])
150150
}
151151

152152
/**
153-
* Returns the App entity.
153+
* Returns the Application entity.
154154
*
155155
* @return Application
156156
*/
157-
public function getApp()
157+
public function getApplication()
158158
{
159159
return $this->app;
160160
}
@@ -177,7 +177,7 @@ public function getClient()
177177
public function getOAuth2Client()
178178
{
179179
if (!$this->oAuth2Client instanceof OAuth2Client) {
180-
$app = $this->getApp();
180+
$app = $this->getApplication();
181181
$client = $this->getClient();
182182
$this->oAuth2Client = new OAuth2Client($app, $client, $this->defaultGraphVersion);
183183
}

src/Helper/PageTabHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class PageTabHelper extends CanvasHelper
3838
/**
3939
* Initialize the helper and process available signed request data.
4040
*
41-
* @param Application $app the App entity
41+
* @param Application $app the Application entity
4242
* @param Client $client the client to make HTTP requests
4343
* @param string $graphVersion the version of Graph to use
4444
*/

0 commit comments

Comments
 (0)