{"action":"created","comment":{"url":"https://api.github.com/repos/goaop/parser-reflection/pulls/comments/68895255","id":68895255,"diff_hunk":"@@ -25,12 +25,41 @@ Composer will install the library to your project's `vendor/goaop/parser-reflect\n Usage\n ------------\n \n+### Initialization\n+\n+Prior to first use library needs can optionally be initialized.\n+\n+Following code will use Composer's autoloader of project, where library is used as a dependency:\n+\n+```php\n+$locator = new \\Go\\ParserReflection\\Locator\\ComposerLocator();\n+\\Go\\ParserReflection\\ReflectionEngine::init($locator);\n+```\n+\n+Following code will use Composer's autoloader located at a given path:\n+\n+```php\n+$composerLoader = require_once '/path/to/vendor/autoload.php';\n+$composerLoader->unregister();\n+\n+$locator = new \\Go\\ParserReflection\\Locator\\ComposerLocator($composerLoader);\n+\\Go\\ParserReflection\\ReflectionEngine::init($locator);\n+```\n+\n+If project is using custom autoloader, then:","path":"README.md","position":25,"original_position":25,"commit_id":"310b851422954145dc01ee2bef892e58eb075e7b","original_commit_id":"310b851422954145dc01ee2bef892e58eb075e7b","user":{"login":"lisachenko","id":640114,"avatar_url":"https://avatars.githubusercontent.com/u/640114?v=3","gravatar_id":"","url":"https://api.github.com/users/lisachenko","html_url":"https://github.com/lisachenko","followers_url":"https://api.github.com/users/lisachenko/followers","following_url":"https://api.github.com/users/lisachenko/following{/other_user}","gists_url":"https://api.github.com/users/lisachenko/gists{/gist_id}","starred_url":"https://api.github.com/users/lisachenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisachenko/subscriptions","organizations_url":"https://api.github.com/users/lisachenko/orgs","repos_url":"https://api.github.com/users/lisachenko/repos","events_url":"https://api.github.com/users/lisachenko/events{/privacy}","received_events_url":"https://api.github.com/users/lisachenko/received_events","type":"User","site_admin":false},"body":"If project uses a custom autoloader then you should follow the next steps:","created_at":"2016-06-29T07:08:04Z","updated_at":"2016-06-29T07:08:04Z","html_url":"https://github.com/goaop/parser-reflection/pull/34#discussion_r68895255","pull_request_url":"https://api.github.com/repos/goaop/parser-reflection/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/goaop/parser-reflection/pulls/comments/68895255"},"html":{"href":"https://github.com/goaop/parser-reflection/pull/34#discussion_r68895255"},"pull_request":{"href":"https://api.github.com/repos/goaop/parser-reflection/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/goaop/parser-reflection/pulls/34","id":74147468,"html_url":"https://github.com/goaop/parser-reflection/pull/34","diff_url":"https://github.com/goaop/parser-reflection/pull/34.diff","patch_url":"https://github.com/goaop/parser-reflection/pull/34.patch","issue_url":"https://api.github.com/repos/goaop/parser-reflection/issues/34","number":34,"state":"open","locked":false,"title":"Example how library can be initialized","user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-06-16T20:34:35Z","updated_at":"2016-06-29T07:08:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61e93d97700cf51d52db76a7f142cb4088f291b4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/goaop/parser-reflection/pulls/34/commits","review_comments_url":"https://api.github.com/repos/goaop/parser-reflection/pulls/34/comments","review_comment_url":"https://api.github.com/repos/goaop/parser-reflection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goaop/parser-reflection/issues/34/comments","statuses_url":"https://api.github.com/repos/goaop/parser-reflection/statuses/310b851422954145dc01ee2bef892e58eb075e7b","head":{"label":"aik099:explain-initialization-feat","ref":"explain-initialization-feat","sha":"310b851422954145dc01ee2bef892e58eb075e7b","user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"repo":{"id":60984418,"name":"parser-reflection","full_name":"aik099/parser-reflection","owner":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aik099/parser-reflection","description":"Parser Reflection API","fork":true,"url":"https://api.github.com/repos/aik099/parser-reflection","forks_url":"https://api.github.com/repos/aik099/parser-reflection/forks","keys_url":"https://api.github.com/repos/aik099/parser-reflection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aik099/parser-reflection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aik099/parser-reflection/teams","hooks_url":"https://api.github.com/repos/aik099/parser-reflection/hooks","issue_events_url":"https://api.github.com/repos/aik099/parser-reflection/issues/events{/number}","events_url":"https://api.github.com/repos/aik099/parser-reflection/events","assignees_url":"https://api.github.com/repos/aik099/parser-reflection/assignees{/user}","branches_url":"https://api.github.com/repos/aik099/parser-reflection/branches{/branch}","tags_url":"https://api.github.com/repos/aik099/parser-reflection/tags","blobs_url":"https://api.github.com/repos/aik099/parser-reflection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aik099/parser-reflection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aik099/parser-reflection/git/refs{/sha}","trees_url":"https://api.github.com/repos/aik099/parser-reflection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aik099/parser-reflection/statuses/{sha}","languages_url":"https://api.github.com/repos/aik099/parser-reflection/languages","stargazers_url":"https://api.github.com/repos/aik099/parser-reflection/stargazers","contributors_url":"https://api.github.com/repos/aik099/parser-reflection/contributors","subscribers_url":"https://api.github.com/repos/aik099/parser-reflection/subscribers","subscription_url":"https://api.github.com/repos/aik099/parser-reflection/subscription","commits_url":"https://api.github.com/repos/aik099/parser-reflection/commits{/sha}","git_commits_url":"https://api.github.com/repos/aik099/parser-reflection/git/commits{/sha}","comments_url":"https://api.github.com/repos/aik099/parser-reflection/comments{/number}","issue_comment_url":"https://api.github.com/repos/aik099/parser-reflection/issues/comments{/number}","contents_url":"https://api.github.com/repos/aik099/parser-reflection/contents/{+path}","compare_url":"https://api.github.com/repos/aik099/parser-reflection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aik099/parser-reflection/merges","archive_url":"https://api.github.com/repos/aik099/parser-reflection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aik099/parser-reflection/downloads","issues_url":"https://api.github.com/repos/aik099/parser-reflection/issues{/number}","pulls_url":"https://api.github.com/repos/aik099/parser-reflection/pulls{/number}","milestones_url":"https://api.github.com/repos/aik099/parser-reflection/milestones{/number}","notifications_url":"https://api.github.com/repos/aik099/parser-reflection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aik099/parser-reflection/labels{/name}","releases_url":"https://api.github.com/repos/aik099/parser-reflection/releases{/id}","deployments_url":"https://api.github.com/repos/aik099/parser-reflection/deployments","created_at":"2016-06-12T19:05:16Z","updated_at":"2016-06-12T19:05:17Z","pushed_at":"2016-06-16T20:41:03Z","git_url":"git://github.com/aik099/parser-reflection.git","ssh_url":"git@github.com:aik099/parser-reflection.git","clone_url":"https://github.com/aik099/parser-reflection.git","svn_url":"https://github.com/aik099/parser-reflection","homepage":"","size":167,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"goaop:master","ref":"master","sha":"04e10788ac0c6b3c02e5933285551b83a9e3d674","user":{"login":"goaop","id":12559187,"avatar_url":"https://avatars.githubusercontent.com/u/12559187?v=3","gravatar_id":"","url":"https://api.github.com/users/goaop","html_url":"https://github.com/goaop","followers_url":"https://api.github.com/users/goaop/followers","following_url":"https://api.github.com/users/goaop/following{/other_user}","gists_url":"https://api.github.com/users/goaop/gists{/gist_id}","starred_url":"https://api.github.com/users/goaop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goaop/subscriptions","organizations_url":"https://api.github.com/users/goaop/orgs","repos_url":"https://api.github.com/users/goaop/repos","events_url":"https://api.github.com/users/goaop/events{/privacy}","received_events_url":"https://api.github.com/users/goaop/received_events","type":"Organization","site_admin":false},"repo":{"id":45357981,"name":"parser-reflection","full_name":"goaop/parser-reflection","owner":{"login":"goaop","id":12559187,"avatar_url":"https://avatars.githubusercontent.com/u/12559187?v=3","gravatar_id":"","url":"https://api.github.com/users/goaop","html_url":"https://github.com/goaop","followers_url":"https://api.github.com/users/goaop/followers","following_url":"https://api.github.com/users/goaop/following{/other_user}","gists_url":"https://api.github.com/users/goaop/gists{/gist_id}","starred_url":"https://api.github.com/users/goaop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goaop/subscriptions","organizations_url":"https://api.github.com/users/goaop/orgs","repos_url":"https://api.github.com/users/goaop/repos","events_url":"https://api.github.com/users/goaop/events{/privacy}","received_events_url":"https://api.github.com/users/goaop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goaop/parser-reflection","description":"Parser Reflection API","fork":false,"url":"https://api.github.com/repos/goaop/parser-reflection","forks_url":"https://api.github.com/repos/goaop/parser-reflection/forks","keys_url":"https://api.github.com/repos/goaop/parser-reflection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goaop/parser-reflection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goaop/parser-reflection/teams","hooks_url":"https://api.github.com/repos/goaop/parser-reflection/hooks","issue_events_url":"https://api.github.com/repos/goaop/parser-reflection/issues/events{/number}","events_url":"https://api.github.com/repos/goaop/parser-reflection/events","assignees_url":"https://api.github.com/repos/goaop/parser-reflection/assignees{/user}","branches_url":"https://api.github.com/repos/goaop/parser-reflection/branches{/branch}","tags_url":"https://api.github.com/repos/goaop/parser-reflection/tags","blobs_url":"https://api.github.com/repos/goaop/parser-reflection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goaop/parser-reflection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goaop/parser-reflection/git/refs{/sha}","trees_url":"https://api.github.com/repos/goaop/parser-reflection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goaop/parser-reflection/statuses/{sha}","languages_url":"https://api.github.com/repos/goaop/parser-reflection/languages","stargazers_url":"https://api.github.com/repos/goaop/parser-reflection/stargazers","contributors_url":"https://api.github.com/repos/goaop/parser-reflection/contributors","subscribers_url":"https://api.github.com/repos/goaop/parser-reflection/subscribers","subscription_url":"https://api.github.com/repos/goaop/parser-reflection/subscription","commits_url":"https://api.github.com/repos/goaop/parser-reflection/commits{/sha}","git_commits_url":"https://api.github.com/repos/goaop/parser-reflection/git/commits{/sha}","comments_url":"https://api.github.com/repos/goaop/parser-reflection/comments{/number}","issue_comment_url":"https://api.github.com/repos/goaop/parser-reflection/issues/comments{/number}","contents_url":"https://api.github.com/repos/goaop/parser-reflection/contents/{+path}","compare_url":"https://api.github.com/repos/goaop/parser-reflection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goaop/parser-reflection/merges","archive_url":"https://api.github.com/repos/goaop/parser-reflection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goaop/parser-reflection/downloads","issues_url":"https://api.github.com/repos/goaop/parser-reflection/issues{/number}","pulls_url":"https://api.github.com/repos/goaop/parser-reflection/pulls{/number}","milestones_url":"https://api.github.com/repos/goaop/parser-reflection/milestones{/number}","notifications_url":"https://api.github.com/repos/goaop/parser-reflection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goaop/parser-reflection/labels{/name}","releases_url":"https://api.github.com/repos/goaop/parser-reflection/releases{/id}","deployments_url":"https://api.github.com/repos/goaop/parser-reflection/deployments","created_at":"2015-11-01T21:20:21Z","updated_at":"2016-06-24T09:09:32Z","pushed_at":"2016-06-23T17:30:48Z","git_url":"git://github.com/goaop/parser-reflection.git","ssh_url":"git@github.com:goaop/parser-reflection.git","clone_url":"https://github.com/goaop/parser-reflection.git","svn_url":"https://github.com/goaop/parser-reflection","homepage":"","size":172,"stargazers_count":33,"watchers_count":33,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/goaop/parser-reflection/pulls/34"},"html":{"href":"https://github.com/goaop/parser-reflection/pull/34"},"issue":{"href":"https://api.github.com/repos/goaop/parser-reflection/issues/34"},"comments":{"href":"https://api.github.com/repos/goaop/parser-reflection/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/goaop/parser-reflection/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/goaop/parser-reflection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goaop/parser-reflection/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/goaop/parser-reflection/statuses/310b851422954145dc01ee2bef892e58eb075e7b"}}}}
{"actor":{"display_login":"lisachenko"}}