{"action":"opened","number":28,"pull_request":{"url":"https://api.github.com/repos/misterion/ko-process/pulls/28","id":178818164,"html_url":"https://github.com/misterion/ko-process/pull/28","diff_url":"https://github.com/misterion/ko-process/pull/28.diff","patch_url":"https://github.com/misterion/ko-process/pull/28.patch","issue_url":"https://api.github.com/repos/misterion/ko-process/issues/28","number":28,"state":"open","locked":false,"title":"Add DI to the ProcessManager::constructor","user":{"login":"othercodes","id":4815856,"avatar_url":"https://avatars2.githubusercontent.com/u/4815856?v=4","gravatar_id":"","url":"https://api.github.com/users/othercodes","html_url":"https://github.com/othercodes","followers_url":"https://api.github.com/users/othercodes/followers","following_url":"https://api.github.com/users/othercodes/following{/other_user}","gists_url":"https://api.github.com/users/othercodes/gists{/gist_id}","starred_url":"https://api.github.com/users/othercodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/othercodes/subscriptions","organizations_url":"https://api.github.com/users/othercodes/orgs","repos_url":"https://api.github.com/users/othercodes/repos","events_url":"https://api.github.com/users/othercodes/events{/privacy}","received_events_url":"https://api.github.com/users/othercodes/received_events","type":"User","site_admin":false},"body":"Dependency injection in the Process manager, so the user can pre-configure the \\Ko\\SignalHandler allowing custom behavior with signals in daemonized executions, maybe to reload configuration or custom operations.\r\n\r\n```php\r\n$signalHandler = new \\Ko\\SignalHandler();\r\n$signalHandler->registerHandler(SIGHUP, function () {\r\n    // do something on reload\r\n});\r\n$manager = new \\Ko\\ProcessManager($signalHandler);\r\n```\r\n\r\n","created_at":"2018-04-02T10:55:41Z","updated_at":"2018-04-02T10:55:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/misterion/ko-process/pulls/28/commits","review_comments_url":"https://api.github.com/repos/misterion/ko-process/pulls/28/comments","review_comment_url":"https://api.github.com/repos/misterion/ko-process/pulls/comments{/number}","comments_url":"https://api.github.com/repos/misterion/ko-process/issues/28/comments","statuses_url":"https://api.github.com/repos/misterion/ko-process/statuses/f0529c0a21ffce2afc0533f913d1a733a90ade80","head":{"label":"othercodes:master","ref":"master","sha":"f0529c0a21ffce2afc0533f913d1a733a90ade80","user":{"login":"othercodes","id":4815856,"avatar_url":"https://avatars2.githubusercontent.com/u/4815856?v=4","gravatar_id":"","url":"https://api.github.com/users/othercodes","html_url":"https://github.com/othercodes","followers_url":"https://api.github.com/users/othercodes/followers","following_url":"https://api.github.com/users/othercodes/following{/other_user}","gists_url":"https://api.github.com/users/othercodes/gists{/gist_id}","starred_url":"https://api.github.com/users/othercodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/othercodes/subscriptions","organizations_url":"https://api.github.com/users/othercodes/orgs","repos_url":"https://api.github.com/users/othercodes/repos","events_url":"https://api.github.com/users/othercodes/events{/privacy}","received_events_url":"https://api.github.com/users/othercodes/received_events","type":"User","site_admin":false},"repo":{"id":127007425,"name":"ko-process","full_name":"othercodes/ko-process","owner":{"login":"othercodes","id":4815856,"avatar_url":"https://avatars2.githubusercontent.com/u/4815856?v=4","gravatar_id":"","url":"https://api.github.com/users/othercodes","html_url":"https://github.com/othercodes","followers_url":"https://api.github.com/users/othercodes/followers","following_url":"https://api.github.com/users/othercodes/following{/other_user}","gists_url":"https://api.github.com/users/othercodes/gists{/gist_id}","starred_url":"https://api.github.com/users/othercodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/othercodes/subscriptions","organizations_url":"https://api.github.com/users/othercodes/orgs","repos_url":"https://api.github.com/users/othercodes/repos","events_url":"https://api.github.com/users/othercodes/events{/privacy}","received_events_url":"https://api.github.com/users/othercodes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/othercodes/ko-process","description":"Simple pcntl fork wrapper and process manager","fork":true,"url":"https://api.github.com/repos/othercodes/ko-process","forks_url":"https://api.github.com/repos/othercodes/ko-process/forks","keys_url":"https://api.github.com/repos/othercodes/ko-process/keys{/key_id}","collaborators_url":"https://api.github.com/repos/othercodes/ko-process/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/othercodes/ko-process/teams","hooks_url":"https://api.github.com/repos/othercodes/ko-process/hooks","issue_events_url":"https://api.github.com/repos/othercodes/ko-process/issues/events{/number}","events_url":"https://api.github.com/repos/othercodes/ko-process/events","assignees_url":"https://api.github.com/repos/othercodes/ko-process/assignees{/user}","branches_url":"https://api.github.com/repos/othercodes/ko-process/branches{/branch}","tags_url":"https://api.github.com/repos/othercodes/ko-process/tags","blobs_url":"https://api.github.com/repos/othercodes/ko-process/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/othercodes/ko-process/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/othercodes/ko-process/git/refs{/sha}","trees_url":"https://api.github.com/repos/othercodes/ko-process/git/trees{/sha}","statuses_url":"https://api.github.com/repos/othercodes/ko-process/statuses/{sha}","languages_url":"https://api.github.com/repos/othercodes/ko-process/languages","stargazers_url":"https://api.github.com/repos/othercodes/ko-process/stargazers","contributors_url":"https://api.github.com/repos/othercodes/ko-process/contributors","subscribers_url":"https://api.github.com/repos/othercodes/ko-process/subscribers","subscription_url":"https://api.github.com/repos/othercodes/ko-process/subscription","commits_url":"https://api.github.com/repos/othercodes/ko-process/commits{/sha}","git_commits_url":"https://api.github.com/repos/othercodes/ko-process/git/commits{/sha}","comments_url":"https://api.github.com/repos/othercodes/ko-process/comments{/number}","issue_comment_url":"https://api.github.com/repos/othercodes/ko-process/issues/comments{/number}","contents_url":"https://api.github.com/repos/othercodes/ko-process/contents/{+path}","compare_url":"https://api.github.com/repos/othercodes/ko-process/compare/{base}...{head}","merges_url":"https://api.github.com/repos/othercodes/ko-process/merges","archive_url":"https://api.github.com/repos/othercodes/ko-process/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/othercodes/ko-process/downloads","issues_url":"https://api.github.com/repos/othercodes/ko-process/issues{/number}","pulls_url":"https://api.github.com/repos/othercodes/ko-process/pulls{/number}","milestones_url":"https://api.github.com/repos/othercodes/ko-process/milestones{/number}","notifications_url":"https://api.github.com/repos/othercodes/ko-process/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/othercodes/ko-process/labels{/name}","releases_url":"https://api.github.com/repos/othercodes/ko-process/releases{/id}","deployments_url":"https://api.github.com/repos/othercodes/ko-process/deployments","created_at":"2018-03-27T15:25:10Z","updated_at":"2018-03-28T11:17:42Z","pushed_at":"2018-03-28T11:17:39Z","git_url":"git://github.com/othercodes/ko-process.git","ssh_url":"git@github.com:othercodes/ko-process.git","clone_url":"https://github.com/othercodes/ko-process.git","svn_url":"https://github.com/othercodes/ko-process","homepage":null,"size":92,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"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":"master"}},"base":{"label":"misterion:master","ref":"master","sha":"36fc6742c57d8fd6fea8aace95bb585b946af649","user":{"login":"misterion","id":196737,"avatar_url":"https://avatars1.githubusercontent.com/u/196737?v=4","gravatar_id":"","url":"https://api.github.com/users/misterion","html_url":"https://github.com/misterion","followers_url":"https://api.github.com/users/misterion/followers","following_url":"https://api.github.com/users/misterion/following{/other_user}","gists_url":"https://api.github.com/users/misterion/gists{/gist_id}","starred_url":"https://api.github.com/users/misterion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterion/subscriptions","organizations_url":"https://api.github.com/users/misterion/orgs","repos_url":"https://api.github.com/users/misterion/repos","events_url":"https://api.github.com/users/misterion/events{/privacy}","received_events_url":"https://api.github.com/users/misterion/received_events","type":"User","site_admin":false},"repo":{"id":16769725,"name":"ko-process","full_name":"misterion/ko-process","owner":{"login":"misterion","id":196737,"avatar_url":"https://avatars1.githubusercontent.com/u/196737?v=4","gravatar_id":"","url":"https://api.github.com/users/misterion","html_url":"https://github.com/misterion","followers_url":"https://api.github.com/users/misterion/followers","following_url":"https://api.github.com/users/misterion/following{/other_user}","gists_url":"https://api.github.com/users/misterion/gists{/gist_id}","starred_url":"https://api.github.com/users/misterion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterion/subscriptions","organizations_url":"https://api.github.com/users/misterion/orgs","repos_url":"https://api.github.com/users/misterion/repos","events_url":"https://api.github.com/users/misterion/events{/privacy}","received_events_url":"https://api.github.com/users/misterion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/misterion/ko-process","description":"Simple pcntl fork wrapper and process manager","fork":false,"url":"https://api.github.com/repos/misterion/ko-process","forks_url":"https://api.github.com/repos/misterion/ko-process/forks","keys_url":"https://api.github.com/repos/misterion/ko-process/keys{/key_id}","collaborators_url":"https://api.github.com/repos/misterion/ko-process/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/misterion/ko-process/teams","hooks_url":"https://api.github.com/repos/misterion/ko-process/hooks","issue_events_url":"https://api.github.com/repos/misterion/ko-process/issues/events{/number}","events_url":"https://api.github.com/repos/misterion/ko-process/events","assignees_url":"https://api.github.com/repos/misterion/ko-process/assignees{/user}","branches_url":"https://api.github.com/repos/misterion/ko-process/branches{/branch}","tags_url":"https://api.github.com/repos/misterion/ko-process/tags","blobs_url":"https://api.github.com/repos/misterion/ko-process/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/misterion/ko-process/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/misterion/ko-process/git/refs{/sha}","trees_url":"https://api.github.com/repos/misterion/ko-process/git/trees{/sha}","statuses_url":"https://api.github.com/repos/misterion/ko-process/statuses/{sha}","languages_url":"https://api.github.com/repos/misterion/ko-process/languages","stargazers_url":"https://api.github.com/repos/misterion/ko-process/stargazers","contributors_url":"https://api.github.com/repos/misterion/ko-process/contributors","subscribers_url":"https://api.github.com/repos/misterion/ko-process/subscribers","subscription_url":"https://api.github.com/repos/misterion/ko-process/subscription","commits_url":"https://api.github.com/repos/misterion/ko-process/commits{/sha}","git_commits_url":"https://api.github.com/repos/misterion/ko-process/git/commits{/sha}","comments_url":"https://api.github.com/repos/misterion/ko-process/comments{/number}","issue_comment_url":"https://api.github.com/repos/misterion/ko-process/issues/comments{/number}","contents_url":"https://api.github.com/repos/misterion/ko-process/contents/{+path}","compare_url":"https://api.github.com/repos/misterion/ko-process/compare/{base}...{head}","merges_url":"https://api.github.com/repos/misterion/ko-process/merges","archive_url":"https://api.github.com/repos/misterion/ko-process/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/misterion/ko-process/downloads","issues_url":"https://api.github.com/repos/misterion/ko-process/issues{/number}","pulls_url":"https://api.github.com/repos/misterion/ko-process/pulls{/number}","milestones_url":"https://api.github.com/repos/misterion/ko-process/milestones{/number}","notifications_url":"https://api.github.com/repos/misterion/ko-process/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/misterion/ko-process/labels{/name}","releases_url":"https://api.github.com/repos/misterion/ko-process/releases{/id}","deployments_url":"https://api.github.com/repos/misterion/ko-process/deployments","created_at":"2014-02-12T14:26:49Z","updated_at":"2018-03-27T13:35:58Z","pushed_at":"2017-10-02T08:20:26Z","git_url":"git://github.com/misterion/ko-process.git","ssh_url":"git@github.com:misterion/ko-process.git","clone_url":"https://github.com/misterion/ko-process.git","svn_url":"https://github.com/misterion/ko-process","homepage":null,"size":92,"stargazers_count":151,"watchers_count":151,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":16,"open_issues":4,"watchers":151,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/misterion/ko-process/pulls/28"},"html":{"href":"https://github.com/misterion/ko-process/pull/28"},"issue":{"href":"https://api.github.com/repos/misterion/ko-process/issues/28"},"comments":{"href":"https://api.github.com/repos/misterion/ko-process/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/misterion/ko-process/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/misterion/ko-process/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/misterion/ko-process/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/misterion/ko-process/statuses/f0529c0a21ffce2afc0533f913d1a733a90ade80"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":12,"deletions":5,"changed_files":1}}
{"actor":{"display_login":"othercodes"}}