{"action":"created","issue":{"url":"https://api.github.com/repos/kreait/firebase-php/issues/258","repository_url":"https://api.github.com/repos/kreait/firebase-php","labels_url":"https://api.github.com/repos/kreait/firebase-php/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/kreait/firebase-php/issues/258/comments","events_url":"https://api.github.com/repos/kreait/firebase-php/issues/258/events","html_url":"https://github.com/kreait/firebase-php/issues/258","id":372318341,"node_id":"MDU6SXNzdWUzNzIzMTgzNDE=","number":258,"title":"Error : Call to private Method","user":{"login":"Isaac009","id":17350980,"node_id":"MDQ6VXNlcjE3MzUwOTgw","avatar_url":"https://avatars2.githubusercontent.com/u/17350980?v=4","gravatar_id":"","url":"https://api.github.com/users/Isaac009","html_url":"https://github.com/Isaac009","followers_url":"https://api.github.com/users/Isaac009/followers","following_url":"https://api.github.com/users/Isaac009/following{/other_user}","gists_url":"https://api.github.com/users/Isaac009/gists{/gist_id}","starred_url":"https://api.github.com/users/Isaac009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Isaac009/subscriptions","organizations_url":"https://api.github.com/users/Isaac009/orgs","repos_url":"https://api.github.com/users/Isaac009/repos","events_url":"https://api.github.com/users/Isaac009/events{/privacy}","received_events_url":"https://api.github.com/users/Isaac009/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-21T14:02:57Z","updated_at":"2018-10-22T05:54:11Z","closed_at":"2018-10-22T05:53:15Z","author_association":"NONE","body":"I am using Firebase Admin SDK for PHP v 3.9.3\r\nProblem \r\nError: Call to private method Kreait\\Firebase\\ServiceAccount::fromJsonFile() from context \r\n\r\nWhile trying to use some methods as follows;\r\n$serviceAccount = ServiceAccount::fromJsonFile(__DIR__ . '/firebase_credentials.json');\r\n        $firebase = (new Factory)\r\n            ->withServiceAccount($serviceAccount)\r\n            ->create();\r\nI tried to edit fromJsonFile() from private to public and seemed like it worked then I landed to another issue, this method  withServiceAccount does not exists\r\nError : Call to undefined method Kreait\\Firebase\\Factory::withServiceAccount()\r\n"},"comment":{"url":"https://api.github.com/repos/kreait/firebase-php/issues/comments/431745917","html_url":"https://github.com/kreait/firebase-php/issues/258#issuecomment-431745917","issue_url":"https://api.github.com/repos/kreait/firebase-php/issues/258","id":431745917,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTc0NTkxNw==","user":{"login":"jeromegamez","id":67554,"node_id":"MDQ6VXNlcjY3NTU0","avatar_url":"https://avatars1.githubusercontent.com/u/67554?v=4","gravatar_id":"","url":"https://api.github.com/users/jeromegamez","html_url":"https://github.com/jeromegamez","followers_url":"https://api.github.com/users/jeromegamez/followers","following_url":"https://api.github.com/users/jeromegamez/following{/other_user}","gists_url":"https://api.github.com/users/jeromegamez/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromegamez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromegamez/subscriptions","organizations_url":"https://api.github.com/users/jeromegamez/orgs","repos_url":"https://api.github.com/users/jeromegamez/repos","events_url":"https://api.github.com/users/jeromegamez/events{/privacy}","received_events_url":"https://api.github.com/users/jeromegamez/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T05:54:11Z","updated_at":"2018-10-22T05:54:11Z","author_association":"MEMBER","body":"I closed the issue as it‘s not a bug, but feel free to add further comments if needed."}}
{"actor":{"display_login":"jeromegamez"}}