{"action":"closed","number":1149,"pull_request":{"url":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1149","id":44519658,"html_url":"https://github.com/fusionpbx/fusionpbx/pull/1149","diff_url":"https://github.com/fusionpbx/fusionpbx/pull/1149.diff","patch_url":"https://github.com/fusionpbx/fusionpbx/pull/1149.patch","issue_url":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/1149","number":1149,"state":"closed","locked":false,"title":"Add Log and Cache classes","user":{"login":"moteus","id":1804306,"avatar_url":"https://avatars.githubusercontent.com/u/1804306?v=3","gravatar_id":"","url":"https://api.github.com/users/moteus","html_url":"https://github.com/moteus","followers_url":"https://api.github.com/users/moteus/followers","following_url":"https://api.github.com/users/moteus/following{/other_user}","gists_url":"https://api.github.com/users/moteus/gists{/gist_id}","starred_url":"https://api.github.com/users/moteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moteus/subscriptions","organizations_url":"https://api.github.com/users/moteus/orgs","repos_url":"https://api.github.com/users/moteus/repos","events_url":"https://api.github.com/users/moteus/events{/privacy}","received_events_url":"https://api.github.com/users/moteus/received_events","type":"User","site_admin":false},"body":"This is just suggestion about make code easy to write/read.\r\n`dialplan.lua` is just example of how to use this classes.\r\nLog class replace\r\n```Lua\r\nfreeswitch.consoleLog(\"notice\", \"[xml_handler] \" ....)\r\n```\r\nto\r\n```Lua\r\n-- `local` here is mondatory\r\nlocal log = require\"resources.functions.log\"[\"xml_handler\"]\r\nlog.notice(....)\r\nlog.noticef(\"%s\", \"message\") -- formatted version\r\n```\r\n\r\nCache class escape symbols `\\` and `'` automatically\r\n\r\n","created_at":"2015-09-09T07:50:26Z","updated_at":"2015-09-14T16:27:48Z","closed_at":"2015-09-14T16:27:48Z","merged_at":"2015-09-14T16:27:48Z","merge_commit_sha":"280e15e0b7a700161e735398a8d7933709c6e09c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1149/commits","review_comments_url":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1149/comments","review_comment_url":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/1149/comments","statuses_url":"https://api.github.com/repos/fusionpbx/fusionpbx/statuses/dcc08a22650210c319999269f5a1dbc00ea1078b","head":{"label":"moteus:cache_class","ref":"cache_class","sha":"dcc08a22650210c319999269f5a1dbc00ea1078b","user":{"login":"moteus","id":1804306,"avatar_url":"https://avatars.githubusercontent.com/u/1804306?v=3","gravatar_id":"","url":"https://api.github.com/users/moteus","html_url":"https://github.com/moteus","followers_url":"https://api.github.com/users/moteus/followers","following_url":"https://api.github.com/users/moteus/following{/other_user}","gists_url":"https://api.github.com/users/moteus/gists{/gist_id}","starred_url":"https://api.github.com/users/moteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moteus/subscriptions","organizations_url":"https://api.github.com/users/moteus/orgs","repos_url":"https://api.github.com/users/moteus/repos","events_url":"https://api.github.com/users/moteus/events{/privacy}","received_events_url":"https://api.github.com/users/moteus/received_events","type":"User","site_admin":false},"repo":{"id":38383604,"name":"fusionpbx","full_name":"moteus/fusionpbx","owner":{"login":"moteus","id":1804306,"avatar_url":"https://avatars.githubusercontent.com/u/1804306?v=3","gravatar_id":"","url":"https://api.github.com/users/moteus","html_url":"https://github.com/moteus","followers_url":"https://api.github.com/users/moteus/followers","following_url":"https://api.github.com/users/moteus/following{/other_user}","gists_url":"https://api.github.com/users/moteus/gists{/gist_id}","starred_url":"https://api.github.com/users/moteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moteus/subscriptions","organizations_url":"https://api.github.com/users/moteus/orgs","repos_url":"https://api.github.com/users/moteus/repos","events_url":"https://api.github.com/users/moteus/events{/privacy}","received_events_url":"https://api.github.com/users/moteus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moteus/fusionpbx","description":"A full-featured multi-tenant GUI for FreeSwitch","fork":true,"url":"https://api.github.com/repos/moteus/fusionpbx","forks_url":"https://api.github.com/repos/moteus/fusionpbx/forks","keys_url":"https://api.github.com/repos/moteus/fusionpbx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moteus/fusionpbx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moteus/fusionpbx/teams","hooks_url":"https://api.github.com/repos/moteus/fusionpbx/hooks","issue_events_url":"https://api.github.com/repos/moteus/fusionpbx/issues/events{/number}","events_url":"https://api.github.com/repos/moteus/fusionpbx/events","assignees_url":"https://api.github.com/repos/moteus/fusionpbx/assignees{/user}","branches_url":"https://api.github.com/repos/moteus/fusionpbx/branches{/branch}","tags_url":"https://api.github.com/repos/moteus/fusionpbx/tags","blobs_url":"https://api.github.com/repos/moteus/fusionpbx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moteus/fusionpbx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moteus/fusionpbx/git/refs{/sha}","trees_url":"https://api.github.com/repos/moteus/fusionpbx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moteus/fusionpbx/statuses/{sha}","languages_url":"https://api.github.com/repos/moteus/fusionpbx/languages","stargazers_url":"https://api.github.com/repos/moteus/fusionpbx/stargazers","contributors_url":"https://api.github.com/repos/moteus/fusionpbx/contributors","subscribers_url":"https://api.github.com/repos/moteus/fusionpbx/subscribers","subscription_url":"https://api.github.com/repos/moteus/fusionpbx/subscription","commits_url":"https://api.github.com/repos/moteus/fusionpbx/commits{/sha}","git_commits_url":"https://api.github.com/repos/moteus/fusionpbx/git/commits{/sha}","comments_url":"https://api.github.com/repos/moteus/fusionpbx/comments{/number}","issue_comment_url":"https://api.github.com/repos/moteus/fusionpbx/issues/comments{/number}","contents_url":"https://api.github.com/repos/moteus/fusionpbx/contents/{+path}","compare_url":"https://api.github.com/repos/moteus/fusionpbx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moteus/fusionpbx/merges","archive_url":"https://api.github.com/repos/moteus/fusionpbx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moteus/fusionpbx/downloads","issues_url":"https://api.github.com/repos/moteus/fusionpbx/issues{/number}","pulls_url":"https://api.github.com/repos/moteus/fusionpbx/pulls{/number}","milestones_url":"https://api.github.com/repos/moteus/fusionpbx/milestones{/number}","notifications_url":"https://api.github.com/repos/moteus/fusionpbx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moteus/fusionpbx/labels{/name}","releases_url":"https://api.github.com/repos/moteus/fusionpbx/releases{/id}","created_at":"2015-07-01T16:58:59Z","updated_at":"2015-07-01T16:59:03Z","pushed_at":"2015-09-10T11:34:03Z","git_url":"git://github.com/moteus/fusionpbx.git","ssh_url":"git@github.com:moteus/fusionpbx.git","clone_url":"https://github.com/moteus/fusionpbx.git","svn_url":"https://github.com/moteus/fusionpbx","homepage":"http://fusionpbx.com/","size":16678,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":false,"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":"fusionpbx:master","ref":"master","sha":"0bf97e79bde92658bdf163b9fbfa2fac2c0097c7","user":{"login":"fusionpbx","id":394783,"avatar_url":"https://avatars.githubusercontent.com/u/394783?v=3","gravatar_id":"","url":"https://api.github.com/users/fusionpbx","html_url":"https://github.com/fusionpbx","followers_url":"https://api.github.com/users/fusionpbx/followers","following_url":"https://api.github.com/users/fusionpbx/following{/other_user}","gists_url":"https://api.github.com/users/fusionpbx/gists{/gist_id}","starred_url":"https://api.github.com/users/fusionpbx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusionpbx/subscriptions","organizations_url":"https://api.github.com/users/fusionpbx/orgs","repos_url":"https://api.github.com/users/fusionpbx/repos","events_url":"https://api.github.com/users/fusionpbx/events{/privacy}","received_events_url":"https://api.github.com/users/fusionpbx/received_events","type":"Organization","site_admin":false},"repo":{"id":38333430,"name":"fusionpbx","full_name":"fusionpbx/fusionpbx","owner":{"login":"fusionpbx","id":394783,"avatar_url":"https://avatars.githubusercontent.com/u/394783?v=3","gravatar_id":"","url":"https://api.github.com/users/fusionpbx","html_url":"https://github.com/fusionpbx","followers_url":"https://api.github.com/users/fusionpbx/followers","following_url":"https://api.github.com/users/fusionpbx/following{/other_user}","gists_url":"https://api.github.com/users/fusionpbx/gists{/gist_id}","starred_url":"https://api.github.com/users/fusionpbx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusionpbx/subscriptions","organizations_url":"https://api.github.com/users/fusionpbx/orgs","repos_url":"https://api.github.com/users/fusionpbx/repos","events_url":"https://api.github.com/users/fusionpbx/events{/privacy}","received_events_url":"https://api.github.com/users/fusionpbx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fusionpbx/fusionpbx","description":"Official FusionPBX - A full-featured multi-tenant GUI for FreeSwitch","fork":false,"url":"https://api.github.com/repos/fusionpbx/fusionpbx","forks_url":"https://api.github.com/repos/fusionpbx/fusionpbx/forks","keys_url":"https://api.github.com/repos/fusionpbx/fusionpbx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fusionpbx/fusionpbx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fusionpbx/fusionpbx/teams","hooks_url":"https://api.github.com/repos/fusionpbx/fusionpbx/hooks","issue_events_url":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/events{/number}","events_url":"https://api.github.com/repos/fusionpbx/fusionpbx/events","assignees_url":"https://api.github.com/repos/fusionpbx/fusionpbx/assignees{/user}","branches_url":"https://api.github.com/repos/fusionpbx/fusionpbx/branches{/branch}","tags_url":"https://api.github.com/repos/fusionpbx/fusionpbx/tags","blobs_url":"https://api.github.com/repos/fusionpbx/fusionpbx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fusionpbx/fusionpbx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fusionpbx/fusionpbx/git/refs{/sha}","trees_url":"https://api.github.com/repos/fusionpbx/fusionpbx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fusionpbx/fusionpbx/statuses/{sha}","languages_url":"https://api.github.com/repos/fusionpbx/fusionpbx/languages","stargazers_url":"https://api.github.com/repos/fusionpbx/fusionpbx/stargazers","contributors_url":"https://api.github.com/repos/fusionpbx/fusionpbx/contributors","subscribers_url":"https://api.github.com/repos/fusionpbx/fusionpbx/subscribers","subscription_url":"https://api.github.com/repos/fusionpbx/fusionpbx/subscription","commits_url":"https://api.github.com/repos/fusionpbx/fusionpbx/commits{/sha}","git_commits_url":"https://api.github.com/repos/fusionpbx/fusionpbx/git/commits{/sha}","comments_url":"https://api.github.com/repos/fusionpbx/fusionpbx/comments{/number}","issue_comment_url":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/comments{/number}","contents_url":"https://api.github.com/repos/fusionpbx/fusionpbx/contents/{+path}","compare_url":"https://api.github.com/repos/fusionpbx/fusionpbx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fusionpbx/fusionpbx/merges","archive_url":"https://api.github.com/repos/fusionpbx/fusionpbx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fusionpbx/fusionpbx/downloads","issues_url":"https://api.github.com/repos/fusionpbx/fusionpbx/issues{/number}","pulls_url":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls{/number}","milestones_url":"https://api.github.com/repos/fusionpbx/fusionpbx/milestones{/number}","notifications_url":"https://api.github.com/repos/fusionpbx/fusionpbx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fusionpbx/fusionpbx/labels{/name}","releases_url":"https://api.github.com/repos/fusionpbx/fusionpbx/releases{/id}","created_at":"2015-06-30T21:13:06Z","updated_at":"2015-09-06T06:55:40Z","pushed_at":"2015-09-14T16:27:48Z","git_url":"git://github.com/fusionpbx/fusionpbx.git","ssh_url":"git@github.com:fusionpbx/fusionpbx.git","clone_url":"https://github.com/fusionpbx/fusionpbx.git","svn_url":"https://github.com/fusionpbx/fusionpbx","homepage":"http://www.fusionpbx.com/","size":17915,"stargazers_count":28,"watchers_count":28,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":204,"forks":29,"open_issues":204,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1149"},"html":{"href":"https://github.com/fusionpbx/fusionpbx/pull/1149"},"issue":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/1149"},"comments":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/1149/comments"},"review_comments":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1149/comments"},"review_comment":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1149/commits"},"statuses":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/statuses/dcc08a22650210c319999269f5a1dbc00ea1078b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"markjcrane","id":3408509,"avatar_url":"https://avatars.githubusercontent.com/u/3408509?v=3","gravatar_id":"","url":"https://api.github.com/users/markjcrane","html_url":"https://github.com/markjcrane","followers_url":"https://api.github.com/users/markjcrane/followers","following_url":"https://api.github.com/users/markjcrane/following{/other_user}","gists_url":"https://api.github.com/users/markjcrane/gists{/gist_id}","starred_url":"https://api.github.com/users/markjcrane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markjcrane/subscriptions","organizations_url":"https://api.github.com/users/markjcrane/orgs","repos_url":"https://api.github.com/users/markjcrane/repos","events_url":"https://api.github.com/users/markjcrane/events{/privacy}","received_events_url":"https://api.github.com/users/markjcrane/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":156,"deletions":17,"changed_files":3}}