Skip to content

Commit 6ec034d

Browse files
committed
Merge pull request #112 from noughts/patch-1
Making ParseInstallation subclassable
2 parents 982def2 + 4257446 commit 6ec034d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Parse/ParseClient.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ public static function initialize($app_id, $rest_key, $master_key, $enableCurlEx
8484
if (! ParseObject::hasRegisteredSubclass('_Role')) {
8585
ParseRole::registerSubclass();
8686
}
87-
88-
ParseInstallation::registerSubclass();
87+
88+
if (! ParseObject::hasRegisteredSubclass('_Installation')) {
89+
ParseInstallation::registerSubclass();
90+
}
91+
8992
ParseSession::registerSubclass();
9093
self::$applicationId = $app_id;
9194
self::$restKey = $rest_key;

0 commit comments

Comments
 (0)