{"action":"closed","issue":{"url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP/issues/137","repository_url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP","labels_url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP/issues/137/comments","events_url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP/issues/137/events","html_url":"https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/137","id":173626908,"number":137,"title":"Login with google API","user":{"login":"vntopcoders","id":4246000,"avatar_url":"https://avatars.githubusercontent.com/u/4246000?v=3","gravatar_id":"","url":"https://api.github.com/users/vntopcoders","html_url":"https://github.com/vntopcoders","followers_url":"https://api.github.com/users/vntopcoders/followers","following_url":"https://api.github.com/users/vntopcoders/following{/other_user}","gists_url":"https://api.github.com/users/vntopcoders/gists{/gist_id}","starred_url":"https://api.github.com/users/vntopcoders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vntopcoders/subscriptions","organizations_url":"https://api.github.com/users/vntopcoders/orgs","repos_url":"https://api.github.com/users/vntopcoders/repos","events_url":"https://api.github.com/users/vntopcoders/events{/privacy}","received_events_url":"https://api.github.com/users/vntopcoders/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-28T03:19:54Z","updated_at":"2016-08-28T11:38:04Z","closed_at":"2016-08-28T11:38:04Z","body":"My source code as:\r\n\r\n``` php\r\n$config = new Config();\r\n$config->setProvider(Factory::PROVIDER_GOOGLE);\r\n$config->setAuthToken($_GET[\"code\"]);\r\n$manager = Factory::create($config);\r\n$manager->addListener(function ($event, $value) {\r\n        if ($event === Manager::EVENT_ACCESS_TOKEN) {\r\n            /** @var AccessToken $accessToken */\r\n            $_SESSION[\"accessToken\"]= $value;\r\n            // Persist the access token in session storage, cache or whatever.\r\n            // The persisted access token should be passed to the Authentication factory for authentication\r\n        }\r\n    });\r\n    // Initialize the pokemon go application\r\n    $application = new ApplicationKernel($manager);\r\n```\r\nBut I had got the error:\r\n`\r\n[error] 28915#0: *631 FastCGI sent in stderr: \"PHP message: PHP Fatal error:  Uncaught exception 'DI\\NotFoundException' with message 'No entry or class found for 'config'' in /usr/share/nginx/html/poke/vendor/php-di/php-di/src/DI/Container.php:119\r\n`\r\nPlease help me to check it."}}
{"actor":{"display_login":"vntopcoders"}}