{"action":"opened","number":277,"pull_request":{"url":"https://api.github.com/repos/bearsunday/BEAR.Package/pulls/277","id":189184208,"html_url":"https://github.com/bearsunday/BEAR.Package/pull/277","diff_url":"https://github.com/bearsunday/BEAR.Package/pull/277.diff","patch_url":"https://github.com/bearsunday/BEAR.Package/pull/277.patch","issue_url":"https://api.github.com/repos/bearsunday/BEAR.Package/issues/277","number":277,"state":"open","locked":false,"title":"Compile autoloader","user":{"login":"koriym","id":529021,"avatar_url":"https://avatars1.githubusercontent.com/u/529021?v=4","gravatar_id":"","url":"https://api.github.com/users/koriym","html_url":"https://github.com/koriym","followers_url":"https://api.github.com/users/koriym/followers","following_url":"https://api.github.com/users/koriym/following{/other_user}","gists_url":"https://api.github.com/users/koriym/gists{/gist_id}","starred_url":"https://api.github.com/users/koriym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koriym/subscriptions","organizations_url":"https://api.github.com/users/koriym/orgs","repos_url":"https://api.github.com/users/koriym/repos","events_url":"https://api.github.com/users/koriym/events{/privacy}","received_events_url":"https://api.github.com/users/koriym/received_events","type":"User","site_admin":false},"body":"`compile` command output not only `di/` script files but also crate `autoload.php` file on the root of application directory.\r\n\r\nThis `autload.php` \"require\" files manually as follows, These files are located every request. Also composer class-map seems slower than normal one in most BEAR.Sunday app.  This is the fastest. Also woks to minimize auto-loading which is not nice on tracing.\r\n\r\n```php\r\n<?php\r\nrequire __DIR__ . '/vendor/bear/resource/src/Resource.php';\r\nrequire __DIR__ . '/vendor/bear/resource/src/FactoryInterface.php';\r\nrequire __DIR__ . '/vendor/bear/resource/src/Factory.php';\r\n// over 92 files\r\n// then require official composer autoload.php\r\nrequire __DIR__ . '/vendor/autoload.php';\r\n```\r\nTo use compiled autoload.php,  Chahge the autoload path in `bootstrap.php`\r\n\r\nfrom\r\n```\r\nrequire dirname(__DIR__) . '/vendor/autoload.php'; // original loader\r\n```\r\n\r\nto\r\n```\r\nrequire dirname(__DIR__) . '/autoload.php'; // compiled loader\r\n```\r\n**Do no forget to compile in each `composer update`**","created_at":"2018-05-19T11:33:06Z","updated_at":"2018-05-19T11:33:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":16736335,"url":"https://api.github.com/repos/bearsunday/BEAR.Package/labels/enhancement","name":"enhancement","color":"c7def8","default":true},{"id":26707309,"url":"https://api.github.com/repos/bearsunday/BEAR.Package/labels/feature","name":"feature","color":"009800","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/bearsunday/BEAR.Package/pulls/277/commits","review_comments_url":"https://api.github.com/repos/bearsunday/BEAR.Package/pulls/277/comments","review_comment_url":"https://api.github.com/repos/bearsunday/BEAR.Package/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bearsunday/BEAR.Package/issues/277/comments","statuses_url":"https://api.github.com/repos/bearsunday/BEAR.Package/statuses/c75938cdae46a88d943276e3f988571dba32a450","head":{"label":"koriym:compiler","ref":"compiler","sha":"c75938cdae46a88d943276e3f988571dba32a450","user":{"login":"koriym","id":529021,"avatar_url":"https://avatars1.githubusercontent.com/u/529021?v=4","gravatar_id":"","url":"https://api.github.com/users/koriym","html_url":"https://github.com/koriym","followers_url":"https://api.github.com/users/koriym/followers","following_url":"https://api.github.com/users/koriym/following{/other_user}","gists_url":"https://api.github.com/users/koriym/gists{/gist_id}","starred_url":"https://api.github.com/users/koriym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koriym/subscriptions","organizations_url":"https://api.github.com/users/koriym/orgs","repos_url":"https://api.github.com/users/koriym/repos","events_url":"https://api.github.com/users/koriym/events{/privacy}","received_events_url":"https://api.github.com/users/koriym/received_events","type":"User","site_admin":false},"repo":{"id":34689946,"name":"BEAR.Package","full_name":"koriym/BEAR.Package","owner":{"login":"koriym","id":529021,"avatar_url":"https://avatars1.githubusercontent.com/u/529021?v=4","gravatar_id":"","url":"https://api.github.com/users/koriym","html_url":"https://github.com/koriym","followers_url":"https://api.github.com/users/koriym/followers","following_url":"https://api.github.com/users/koriym/following{/other_user}","gists_url":"https://api.github.com/users/koriym/gists{/gist_id}","starred_url":"https://api.github.com/users/koriym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koriym/subscriptions","organizations_url":"https://api.github.com/users/koriym/orgs","repos_url":"https://api.github.com/users/koriym/repos","events_url":"https://api.github.com/users/koriym/events{/privacy}","received_events_url":"https://api.github.com/users/koriym/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/koriym/BEAR.Package","description":"BEAR.Sunday framework package","fork":true,"url":"https://api.github.com/repos/koriym/BEAR.Package","forks_url":"https://api.github.com/repos/koriym/BEAR.Package/forks","keys_url":"https://api.github.com/repos/koriym/BEAR.Package/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koriym/BEAR.Package/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koriym/BEAR.Package/teams","hooks_url":"https://api.github.com/repos/koriym/BEAR.Package/hooks","issue_events_url":"https://api.github.com/repos/koriym/BEAR.Package/issues/events{/number}","events_url":"https://api.github.com/repos/koriym/BEAR.Package/events","assignees_url":"https://api.github.com/repos/koriym/BEAR.Package/assignees{/user}","branches_url":"https://api.github.com/repos/koriym/BEAR.Package/branches{/branch}","tags_url":"https://api.github.com/repos/koriym/BEAR.Package/tags","blobs_url":"https://api.github.com/repos/koriym/BEAR.Package/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koriym/BEAR.Package/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koriym/BEAR.Package/git/refs{/sha}","trees_url":"https://api.github.com/repos/koriym/BEAR.Package/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koriym/BEAR.Package/statuses/{sha}","languages_url":"https://api.github.com/repos/koriym/BEAR.Package/languages","stargazers_url":"https://api.github.com/repos/koriym/BEAR.Package/stargazers","contributors_url":"https://api.github.com/repos/koriym/BEAR.Package/contributors","subscribers_url":"https://api.github.com/repos/koriym/BEAR.Package/subscribers","subscription_url":"https://api.github.com/repos/koriym/BEAR.Package/subscription","commits_url":"https://api.github.com/repos/koriym/BEAR.Package/commits{/sha}","git_commits_url":"https://api.github.com/repos/koriym/BEAR.Package/git/commits{/sha}","comments_url":"https://api.github.com/repos/koriym/BEAR.Package/comments{/number}","issue_comment_url":"https://api.github.com/repos/koriym/BEAR.Package/issues/comments{/number}","contents_url":"https://api.github.com/repos/koriym/BEAR.Package/contents/{+path}","compare_url":"https://api.github.com/repos/koriym/BEAR.Package/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koriym/BEAR.Package/merges","archive_url":"https://api.github.com/repos/koriym/BEAR.Package/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koriym/BEAR.Package/downloads","issues_url":"https://api.github.com/repos/koriym/BEAR.Package/issues{/number}","pulls_url":"https://api.github.com/repos/koriym/BEAR.Package/pulls{/number}","milestones_url":"https://api.github.com/repos/koriym/BEAR.Package/milestones{/number}","notifications_url":"https://api.github.com/repos/koriym/BEAR.Package/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koriym/BEAR.Package/labels{/name}","releases_url":"https://api.github.com/repos/koriym/BEAR.Package/releases{/id}","deployments_url":"https://api.github.com/repos/koriym/BEAR.Package/deployments","created_at":"2015-04-27T20:37:34Z","updated_at":"2018-05-13T10:06:36Z","pushed_at":"2018-05-19T11:19:50Z","git_url":"git://github.com/koriym/BEAR.Package.git","ssh_url":"git@github.com:koriym/BEAR.Package.git","clone_url":"https://github.com/koriym/BEAR.Package.git","svn_url":"https://github.com/koriym/BEAR.Package","homepage":"bearsunday.github.io","size":5075,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"1.x"}},"base":{"label":"bearsunday:1.x","ref":"1.x","sha":"c34602b03c91d03187cbd1036d7ca5af3f2fb629","user":{"login":"bearsunday","id":1219103,"avatar_url":"https://avatars2.githubusercontent.com/u/1219103?v=4","gravatar_id":"","url":"https://api.github.com/users/bearsunday","html_url":"https://github.com/bearsunday","followers_url":"https://api.github.com/users/bearsunday/followers","following_url":"https://api.github.com/users/bearsunday/following{/other_user}","gists_url":"https://api.github.com/users/bearsunday/gists{/gist_id}","starred_url":"https://api.github.com/users/bearsunday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bearsunday/subscriptions","organizations_url":"https://api.github.com/users/bearsunday/orgs","repos_url":"https://api.github.com/users/bearsunday/repos","events_url":"https://api.github.com/users/bearsunday/events{/privacy}","received_events_url":"https://api.github.com/users/bearsunday/received_events","type":"Organization","site_admin":false},"repo":{"id":6266910,"name":"BEAR.Package","full_name":"bearsunday/BEAR.Package","owner":{"login":"bearsunday","id":1219103,"avatar_url":"https://avatars2.githubusercontent.com/u/1219103?v=4","gravatar_id":"","url":"https://api.github.com/users/bearsunday","html_url":"https://github.com/bearsunday","followers_url":"https://api.github.com/users/bearsunday/followers","following_url":"https://api.github.com/users/bearsunday/following{/other_user}","gists_url":"https://api.github.com/users/bearsunday/gists{/gist_id}","starred_url":"https://api.github.com/users/bearsunday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bearsunday/subscriptions","organizations_url":"https://api.github.com/users/bearsunday/orgs","repos_url":"https://api.github.com/users/bearsunday/repos","events_url":"https://api.github.com/users/bearsunday/events{/privacy}","received_events_url":"https://api.github.com/users/bearsunday/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bearsunday/BEAR.Package","description":"A BEAR.Sunday framework component package","fork":false,"url":"https://api.github.com/repos/bearsunday/BEAR.Package","forks_url":"https://api.github.com/repos/bearsunday/BEAR.Package/forks","keys_url":"https://api.github.com/repos/bearsunday/BEAR.Package/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bearsunday/BEAR.Package/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bearsunday/BEAR.Package/teams","hooks_url":"https://api.github.com/repos/bearsunday/BEAR.Package/hooks","issue_events_url":"https://api.github.com/repos/bearsunday/BEAR.Package/issues/events{/number}","events_url":"https://api.github.com/repos/bearsunday/BEAR.Package/events","assignees_url":"https://api.github.com/repos/bearsunday/BEAR.Package/assignees{/user}","branches_url":"https://api.github.com/repos/bearsunday/BEAR.Package/branches{/branch}","tags_url":"https://api.github.com/repos/bearsunday/BEAR.Package/tags","blobs_url":"https://api.github.com/repos/bearsunday/BEAR.Package/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bearsunday/BEAR.Package/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bearsunday/BEAR.Package/git/refs{/sha}","trees_url":"https://api.github.com/repos/bearsunday/BEAR.Package/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bearsunday/BEAR.Package/statuses/{sha}","languages_url":"https://api.github.com/repos/bearsunday/BEAR.Package/languages","stargazers_url":"https://api.github.com/repos/bearsunday/BEAR.Package/stargazers","contributors_url":"https://api.github.com/repos/bearsunday/BEAR.Package/contributors","subscribers_url":"https://api.github.com/repos/bearsunday/BEAR.Package/subscribers","subscription_url":"https://api.github.com/repos/bearsunday/BEAR.Package/subscription","commits_url":"https://api.github.com/repos/bearsunday/BEAR.Package/commits{/sha}","git_commits_url":"https://api.github.com/repos/bearsunday/BEAR.Package/git/commits{/sha}","comments_url":"https://api.github.com/repos/bearsunday/BEAR.Package/comments{/number}","issue_comment_url":"https://api.github.com/repos/bearsunday/BEAR.Package/issues/comments{/number}","contents_url":"https://api.github.com/repos/bearsunday/BEAR.Package/contents/{+path}","compare_url":"https://api.github.com/repos/bearsunday/BEAR.Package/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bearsunday/BEAR.Package/merges","archive_url":"https://api.github.com/repos/bearsunday/BEAR.Package/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bearsunday/BEAR.Package/downloads","issues_url":"https://api.github.com/repos/bearsunday/BEAR.Package/issues{/number}","pulls_url":"https://api.github.com/repos/bearsunday/BEAR.Package/pulls{/number}","milestones_url":"https://api.github.com/repos/bearsunday/BEAR.Package/milestones{/number}","notifications_url":"https://api.github.com/repos/bearsunday/BEAR.Package/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bearsunday/BEAR.Package/labels{/name}","releases_url":"https://api.github.com/repos/bearsunday/BEAR.Package/releases{/id}","deployments_url":"https://api.github.com/repos/bearsunday/BEAR.Package/deployments","created_at":"2012-10-17T19:05:58Z","updated_at":"2018-05-16T05:08:51Z","pushed_at":"2018-05-16T05:16:06Z","git_url":"git://github.com/bearsunday/BEAR.Package.git","ssh_url":"git@github.com:bearsunday/BEAR.Package.git","clone_url":"https://github.com/bearsunday/BEAR.Package.git","svn_url":"https://github.com/bearsunday/BEAR.Package","homepage":"http://bearsunday.github.io/","size":5094,"stargazers_count":25,"watchers_count":25,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":24,"open_issues":1,"watchers":25,"default_branch":"1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/bearsunday/BEAR.Package/pulls/277"},"html":{"href":"https://github.com/bearsunday/BEAR.Package/pull/277"},"issue":{"href":"https://api.github.com/repos/bearsunday/BEAR.Package/issues/277"},"comments":{"href":"https://api.github.com/repos/bearsunday/BEAR.Package/issues/277/comments"},"review_comments":{"href":"https://api.github.com/repos/bearsunday/BEAR.Package/pulls/277/comments"},"review_comment":{"href":"https://api.github.com/repos/bearsunday/BEAR.Package/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bearsunday/BEAR.Package/pulls/277/commits"},"statuses":{"href":"https://api.github.com/repos/bearsunday/BEAR.Package/statuses/c75938cdae46a88d943276e3f988571dba32a450"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":65,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"koriym"}}