payload: {"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/helhum/dotenv-connector/pulls/18","id":361558475,"node_id":"MDExOlB1bGxSZXF1ZXN0MzYxNTU4NDc1","html_url":"https://github.com/helhum/dotenv-connector/pull/18","diff_url":"https://github.com/helhum/dotenv-connector/pull/18.diff","patch_url":"https://github.com/helhum/dotenv-connector/pull/18.patch","issue_url":"https://api.github.com/repos/helhum/dotenv-connector/issues/18","number":18,"state":"open","locked":false,"title":"[TASK] Implement option to define Dotenv() load method","user":{"login":"wtfred","id":3072924,"node_id":"MDQ6VXNlcjMwNzI5MjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3072924?v=4","gravatar_id":"","url":"https://api.github.com/users/wtfred","html_url":"https://github.com/wtfred","followers_url":"https://api.github.com/users/wtfred/followers","following_url":"https://api.github.com/users/wtfred/following{/other_user}","gists_url":"https://api.github.com/users/wtfred/gists{/gist_id}","starred_url":"https://api.github.com/users/wtfred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtfred/subscriptions","organizations_url":"https://api.github.com/users/wtfred/orgs","repos_url":"https://api.github.com/users/wtfred/repos","events_url":"https://api.github.com/users/wtfred/events{/privacy}","received_events_url":"https://api.github.com/users/wtfred/received_events","type":"User","site_admin":false},"body":"Fix #17 \r\n\r\nThis need hard code review, as it my first time \"playing\" with a composer plugin, and it's using dynamic method calling.\r\n\r\nPlease tell me what i need to improve before merging.\r\n\r\nMy test scenario:\r\n\r\ncomposer.json:\r\n```\r\n{\r\n  \"repositories\": [\r\n    {\r\n      \"type\": \"vcs\",\r\n      \"url\": \"https://github.com/wtfred/dotenv-connector.git\"\r\n    }\r\n  ],\r\n  \"require\": {\r\n    \"helhum/dotenv-connector\": \"dev-master\"\r\n  }\r\n}\r\n```\r\n\r\n.env:\r\n```\r\nFOO=bleh\r\n```\r\n\r\n.env.local:\r\n```\r\nFOO=overrided\r\n```\r\n\r\ntest.php:\r\n```\r\n<?php\r\n\r\nrequire __DIR__ . '/vendor/autoload.php';\r\n\r\nvar_dump(getenv('FOO'));\r\n```\r\n==> string(4) \"bleh\" \r\n\r\nEdit composer.json, add\r\n```\r\n\"extra\": {\r\n    \"helhum/dotenv-connector\": {\r\n      \"load-method\": \"loadEnv\"\r\n    }\r\n  }\r\n```\r\nrun `composer update`\r\n\r\ntest.php ==> string(9) \"overrided\" ","created_at":"2020-01-10T17:51:03Z","updated_at":"2020-01-10T17:51:03Z","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/helhum/dotenv-connector/pulls/18/commits","review_comments_url":"https://api.github.com/repos/helhum/dotenv-connector/pulls/18/comments","review_comment_url":"https://api.github.com/repos/helhum/dotenv-connector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/helhum/dotenv-connector/issues/18/comments","statuses_url":"https://api.github.com/repos/helhum/dotenv-connector/statuses/8c7b1c69f33d37da64789641f0db8416c2a967f2","head":{"label":"wtfred:master","ref":"master","sha":"8c7b1c69f33d37da64789641f0db8416c2a967f2","user":{"login":"wtfred","id":3072924,"node_id":"MDQ6VXNlcjMwNzI5MjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3072924?v=4","gravatar_id":"","url":"https://api.github.com/users/wtfred","html_url":"https://github.com/wtfred","followers_url":"https://api.github.com/users/wtfred/followers","following_url":"https://api.github.com/users/wtfred/following{/other_user}","gists_url":"https://api.github.com/users/wtfred/gists{/gist_id}","starred_url":"https://api.github.com/users/wtfred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtfred/subscriptions","organizations_url":"https://api.github.com/users/wtfred/orgs","repos_url":"https://api.github.com/users/wtfred/repos","events_url":"https://api.github.com/users/wtfred/events{/privacy}","received_events_url":"https://api.github.com/users/wtfred/received_events","type":"User","site_admin":false},"repo":{"id":233087182,"node_id":"MDEwOlJlcG9zaXRvcnkyMzMwODcxODI=","name":"dotenv-connector","full_name":"wtfred/dotenv-connector","private":false,"owner":{"login":"wtfred","id":3072924,"node_id":"MDQ6VXNlcjMwNzI5MjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3072924?v=4","gravatar_id":"","url":"https://api.github.com/users/wtfred","html_url":"https://github.com/wtfred","followers_url":"https://api.github.com/users/wtfred/followers","following_url":"https://api.github.com/users/wtfred/following{/other_user}","gists_url":"https://api.github.com/users/wtfred/gists{/gist_id}","starred_url":"https://api.github.com/users/wtfred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtfred/subscriptions","organizations_url":"https://api.github.com/users/wtfred/orgs","repos_url":"https://api.github.com/users/wtfred/repos","events_url":"https://api.github.com/users/wtfred/events{/privacy}","received_events_url":"https://api.github.com/users/wtfred/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wtfred/dotenv-connector","description":"Makes values from a .env file available as environment variables for composer based projects","fork":true,"url":"https://api.github.com/repos/wtfred/dotenv-connector","forks_url":"https://api.github.com/repos/wtfred/dotenv-connector/forks","keys_url":"https://api.github.com/repos/wtfred/dotenv-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wtfred/dotenv-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wtfred/dotenv-connector/teams","hooks_url":"https://api.github.com/repos/wtfred/dotenv-connector/hooks","issue_events_url":"https://api.github.com/repos/wtfred/dotenv-connector/issues/events{/number}","events_url":"https://api.github.com/repos/wtfred/dotenv-connector/events","assignees_url":"https://api.github.com/repos/wtfred/dotenv-connector/assignees{/user}","branches_url":"https://api.github.com/repos/wtfred/dotenv-connector/branches{/branch}","tags_url":"https://api.github.com/repos/wtfred/dotenv-connector/tags","blobs_url":"https://api.github.com/repos/wtfred/dotenv-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wtfred/dotenv-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wtfred/dotenv-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/wtfred/dotenv-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wtfred/dotenv-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/wtfred/dotenv-connector/languages","stargazers_url":"https://api.github.com/repos/wtfred/dotenv-connector/stargazers","contributors_url":"https://api.github.com/repos/wtfred/dotenv-connector/contributors","subscribers_url":"https://api.github.com/repos/wtfred/dotenv-connector/subscribers","subscription_url":"https://api.github.com/repos/wtfred/dotenv-connector/subscription","commits_url":"https://api.github.com/repos/wtfred/dotenv-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/wtfred/dotenv-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/wtfred/dotenv-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/wtfred/dotenv-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/wtfred/dotenv-connector/contents/{+path}","compare_url":"https://api.github.com/repos/wtfred/dotenv-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wtfred/dotenv-connector/merges","archive_url":"https://api.github.com/repos/wtfred/dotenv-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wtfred/dotenv-connector/downloads","issues_url":"https://api.github.com/repos/wtfred/dotenv-connector/issues{/number}","pulls_url":"https://api.github.com/repos/wtfred/dotenv-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/wtfred/dotenv-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/wtfred/dotenv-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wtfred/dotenv-connector/labels{/name}","releases_url":"https://api.github.com/repos/wtfred/dotenv-connector/releases{/id}","deployments_url":"https://api.github.com/repos/wtfred/dotenv-connector/deployments","created_at":"2020-01-10T16:30:31Z","updated_at":"2020-01-10T17:40:38Z","pushed_at":"2020-01-10T17:40:36Z","git_url":"git://github.com/wtfred/dotenv-connector.git","ssh_url":"git@github.com:wtfred/dotenv-connector.git","clone_url":"https://github.com/wtfred/dotenv-connector.git","svn_url":"https://github.com/wtfred/dotenv-connector","homepage":"","size":50,"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,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"helhum:master","ref":"master","sha":"21748f164864d864e3514160c75e14a48a734903","user":{"login":"helhum","id":904370,"node_id":"MDQ6VXNlcjkwNDM3MA==","avatar_url":"https://avatars2.githubusercontent.com/u/904370?v=4","gravatar_id":"","url":"https://api.github.com/users/helhum","html_url":"https://github.com/helhum","followers_url":"https://api.github.com/users/helhum/followers","following_url":"https://api.github.com/users/helhum/following{/other_user}","gists_url":"https://api.github.com/users/helhum/gists{/gist_id}","starred_url":"https://api.github.com/users/helhum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helhum/subscriptions","organizations_url":"https://api.github.com/users/helhum/orgs","repos_url":"https://api.github.com/users/helhum/repos","events_url":"https://api.github.com/users/helhum/events{/privacy}","received_events_url":"https://api.github.com/users/helhum/received_events","type":"User","site_admin":false},"repo":{"id":45211232,"node_id":"MDEwOlJlcG9zaXRvcnk0NTIxMTIzMg==","name":"dotenv-connector","full_name":"helhum/dotenv-connector","private":false,"owner":{"login":"helhum","id":904370,"node_id":"MDQ6VXNlcjkwNDM3MA==","avatar_url":"https://avatars2.githubusercontent.com/u/904370?v=4","gravatar_id":"","url":"https://api.github.com/users/helhum","html_url":"https://github.com/helhum","followers_url":"https://api.github.com/users/helhum/followers","following_url":"https://api.github.com/users/helhum/following{/other_user}","gists_url":"https://api.github.com/users/helhum/gists{/gist_id}","starred_url":"https://api.github.com/users/helhum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helhum/subscriptions","organizations_url":"https://api.github.com/users/helhum/orgs","repos_url":"https://api.github.com/users/helhum/repos","events_url":"https://api.github.com/users/helhum/events{/privacy}","received_events_url":"https://api.github.com/users/helhum/received_events","type":"User","site_admin":false},"html_url":"https://github.com/helhum/dotenv-connector","description":"Makes values from a .env file available as environment variables for composer based projects","fork":false,"url":"https://api.github.com/repos/helhum/dotenv-connector","forks_url":"https://api.github.com/repos/helhum/dotenv-connector/forks","keys_url":"https://api.github.com/repos/helhum/dotenv-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/helhum/dotenv-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/helhum/dotenv-connector/teams","hooks_url":"https://api.github.com/repos/helhum/dotenv-connector/hooks","issue_events_url":"https://api.github.com/repos/helhum/dotenv-connector/issues/events{/number}","events_url":"https://api.github.com/repos/helhum/dotenv-connector/events","assignees_url":"https://api.github.com/repos/helhum/dotenv-connector/assignees{/user}","branches_url":"https://api.github.com/repos/helhum/dotenv-connector/branches{/branch}","tags_url":"https://api.github.com/repos/helhum/dotenv-connector/tags","blobs_url":"https://api.github.com/repos/helhum/dotenv-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/helhum/dotenv-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/helhum/dotenv-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/helhum/dotenv-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/helhum/dotenv-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/helhum/dotenv-connector/languages","stargazers_url":"https://api.github.com/repos/helhum/dotenv-connector/stargazers","contributors_url":"https://api.github.com/repos/helhum/dotenv-connector/contributors","subscribers_url":"https://api.github.com/repos/helhum/dotenv-connector/subscribers","subscription_url":"https://api.github.com/repos/helhum/dotenv-connector/subscription","commits_url":"https://api.github.com/repos/helhum/dotenv-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/helhum/dotenv-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/helhum/dotenv-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/helhum/dotenv-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/helhum/dotenv-connector/contents/{+path}","compare_url":"https://api.github.com/repos/helhum/dotenv-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/helhum/dotenv-connector/merges","archive_url":"https://api.github.com/repos/helhum/dotenv-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/helhum/dotenv-connector/downloads","issues_url":"https://api.github.com/repos/helhum/dotenv-connector/issues{/number}","pulls_url":"https://api.github.com/repos/helhum/dotenv-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/helhum/dotenv-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/helhum/dotenv-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/helhum/dotenv-connector/labels{/name}","releases_url":"https://api.github.com/repos/helhum/dotenv-connector/releases{/id}","deployments_url":"https://api.github.com/repos/helhum/dotenv-connector/deployments","created_at":"2015-10-29T21:19:43Z","updated_at":"2019-12-27T12:25:05Z","pushed_at":"2019-11-22T14:17:26Z","git_url":"git://github.com/helhum/dotenv-connector.git","ssh_url":"git@github.com:helhum/dotenv-connector.git","clone_url":"https://github.com/helhum/dotenv-connector.git","svn_url":"https://github.com/helhum/dotenv-connector","homepage":"","size":50,"stargazers_count":98,"watchers_count":98,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":13,"open_issues":2,"watchers":98,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/helhum/dotenv-connector/pulls/18"},"html":{"href":"https://github.com/helhum/dotenv-connector/pull/18"},"issue":{"href":"https://api.github.com/repos/helhum/dotenv-connector/issues/18"},"comments":{"href":"https://api.github.com/repos/helhum/dotenv-connector/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/helhum/dotenv-connector/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/helhum/dotenv-connector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/helhum/dotenv-connector/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/helhum/dotenv-connector/statuses/8c7b1c69f33d37da64789641f0db8416c2a967f2"}},"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":7,"deletions":3,"changed_files":3}}
other: {"actor":{"display_login":"wtfred"}}