From 42574469ffd80c76d7bbe345b923d0f824926c9e Mon Sep 17 00:00:00 2001 From: Koichi Yamamoto Date: Wed, 10 Jun 2015 13:22:18 +0900 Subject: [PATCH] Making ParseInstallation subclassable Similar to https://github.com/ParsePlatform/parse-php-sdk/pull/84 --- src/Parse/ParseClient.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Parse/ParseClient.php b/src/Parse/ParseClient.php index 2f244faa..9221d9cc 100755 --- a/src/Parse/ParseClient.php +++ b/src/Parse/ParseClient.php @@ -84,8 +84,11 @@ public static function initialize($app_id, $rest_key, $master_key, $enableCurlEx if (! ParseObject::hasRegisteredSubclass('_Role')) { ParseRole::registerSubclass(); } - - ParseInstallation::registerSubclass(); + + if (! ParseObject::hasRegisteredSubclass('_Installation')) { + ParseInstallation::registerSubclass(); + } + ParseSession::registerSubclass(); self::$applicationId = $app_id; self::$restKey = $rest_key;