Skip to content

Commit cf6245c

Browse files
shalomabitanGrahamCampbell
authored andcommitted
updated to be compliant with parse-php-sdk 1.2.1 (#18)
1 parent e7cfcf8 commit cf6245c

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

config/parse.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@
5353
|
5454
*/
5555

56-
'server_url' => 'https://api.parse.com/1',
56+
'server_url' => 'https://api.parse.com/',
57+
58+
/*
59+
|--------------------------------------------------------------------------
60+
| Parse Mount Point
61+
|--------------------------------------------------------------------------
62+
|
63+
| Here you may specify your parse mount point.
64+
|
65+
*/
66+
67+
'mount_path' => '1/',
68+
5769

5870
];

src/ParseServiceProvider.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ protected function setupParse()
6464

6565
ParseClient::initialize($config['app_id'], $config['rest_key'], $config['master_key']);
6666

67-
if (isset($config['server_url'])) {
68-
ParseClient::setServerURL($config['server_url']);
67+
if (isset($config['server_url']) && isset($config['mount_path'])) {
68+
$serverURL = rtrim($config['server_url'], '/');
69+
$mountPath = trim($config['mount_path'], '/').'/';
70+
71+
ParseClient::setServerURL($serverURL, $mountPath);
6972
}
7073
}
7174

0 commit comments

Comments
 (0)