{"action":"created","comment":{"url":"https://api.github.com/repos/wallstreetcn/sora/pulls/comments/40344669","id":40344669,"diff_hunk":"@@ -17,9 +17,13 @@ class Cronjob\n      */\n     private $logName;\n \n+    private $logger;\n+\n     public function __construct($logName)\n     {\n         $this->logName = $logName;\n+        $this->logger = new \\Phalcon\\Logger\\Adapter\\File(\n+            IoC::get('config')->logger->path . $this->logName);\n     }\n \n     public function ERROR($msg)","path":"apps/MarketAdmin/src/MarketAdmin/Models/Cron/Cronjob.php","position":13,"original_position":13,"commit_id":"22f5d08b66c4a9df38c2750a478d277187ce5045","original_commit_id":"22f5d08b66c4a9df38c2750a478d277187ce5045","user":{"login":"AlloVince","id":176019,"avatar_url":"https://avatars.githubusercontent.com/u/176019?v=3","gravatar_id":"","url":"https://api.github.com/users/AlloVince","html_url":"https://github.com/AlloVince","followers_url":"https://api.github.com/users/AlloVince/followers","following_url":"https://api.github.com/users/AlloVince/following{/other_user}","gists_url":"https://api.github.com/users/AlloVince/gists{/gist_id}","starred_url":"https://api.github.com/users/AlloVince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlloVince/subscriptions","organizations_url":"https://api.github.com/users/AlloVince/orgs","repos_url":"https://api.github.com/users/AlloVince/repos","events_url":"https://api.github.com/users/AlloVince/events{/privacy}","received_events_url":"https://api.github.com/users/AlloVince/received_events","type":"User","site_admin":false},"body":"原则上方法名应该只有驼峰式","created_at":"2015-09-24T17:09:47Z","updated_at":"2015-09-24T17:09:47Z","html_url":"https://github.com/wallstreetcn/sora/pull/27#discussion_r40344669","pull_request_url":"https://api.github.com/repos/wallstreetcn/sora/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/wallstreetcn/sora/pulls/comments/40344669"},"html":{"href":"https://github.com/wallstreetcn/sora/pull/27#discussion_r40344669"},"pull_request":{"href":"https://api.github.com/repos/wallstreetcn/sora/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/wallstreetcn/sora/pulls/27","id":45913293,"html_url":"https://github.com/wallstreetcn/sora/pull/27","diff_url":"https://github.com/wallstreetcn/sora/pull/27.diff","patch_url":"https://github.com/wallstreetcn/sora/pull/27.patch","issue_url":"https://api.github.com/repos/wallstreetcn/sora/issues/27","number":27,"state":"open","locked":false,"title":"daily cron job to update product sell status","user":{"login":"chaiyangyang","id":13635120,"avatar_url":"https://avatars.githubusercontent.com/u/13635120?v=3","gravatar_id":"","url":"https://api.github.com/users/chaiyangyang","html_url":"https://github.com/chaiyangyang","followers_url":"https://api.github.com/users/chaiyangyang/followers","following_url":"https://api.github.com/users/chaiyangyang/following{/other_user}","gists_url":"https://api.github.com/users/chaiyangyang/gists{/gist_id}","starred_url":"https://api.github.com/users/chaiyangyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaiyangyang/subscriptions","organizations_url":"https://api.github.com/users/chaiyangyang/orgs","repos_url":"https://api.github.com/users/chaiyangyang/repos","events_url":"https://api.github.com/users/chaiyangyang/events{/privacy}","received_events_url":"https://api.github.com/users/chaiyangyang/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-24T15:41:48Z","updated_at":"2015-09-24T17:09:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9c5f47d278801dbf3931bbf5a677f26b5bd1b41","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wallstreetcn/sora/pulls/27/commits","review_comments_url":"https://api.github.com/repos/wallstreetcn/sora/pulls/27/comments","review_comment_url":"https://api.github.com/repos/wallstreetcn/sora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wallstreetcn/sora/issues/27/comments","statuses_url":"https://api.github.com/repos/wallstreetcn/sora/statuses/22f5d08b66c4a9df38c2750a478d277187ce5045","head":{"label":"wallstreetcn:branch001","ref":"branch001","sha":"22f5d08b66c4a9df38c2750a478d277187ce5045","user":{"login":"wallstreetcn","id":4260687,"avatar_url":"https://avatars.githubusercontent.com/u/4260687?v=3","gravatar_id":"","url":"https://api.github.com/users/wallstreetcn","html_url":"https://github.com/wallstreetcn","followers_url":"https://api.github.com/users/wallstreetcn/followers","following_url":"https://api.github.com/users/wallstreetcn/following{/other_user}","gists_url":"https://api.github.com/users/wallstreetcn/gists{/gist_id}","starred_url":"https://api.github.com/users/wallstreetcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallstreetcn/subscriptions","organizations_url":"https://api.github.com/users/wallstreetcn/orgs","repos_url":"https://api.github.com/users/wallstreetcn/repos","events_url":"https://api.github.com/users/wallstreetcn/events{/privacy}","received_events_url":"https://api.github.com/users/wallstreetcn/received_events","type":"Organization","site_admin":false},"repo":{"id":40961154,"name":"sora","full_name":"wallstreetcn/sora","owner":{"login":"wallstreetcn","id":4260687,"avatar_url":"https://avatars.githubusercontent.com/u/4260687?v=3","gravatar_id":"","url":"https://api.github.com/users/wallstreetcn","html_url":"https://github.com/wallstreetcn","followers_url":"https://api.github.com/users/wallstreetcn/followers","following_url":"https://api.github.com/users/wallstreetcn/following{/other_user}","gists_url":"https://api.github.com/users/wallstreetcn/gists{/gist_id}","starred_url":"https://api.github.com/users/wallstreetcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallstreetcn/subscriptions","organizations_url":"https://api.github.com/users/wallstreetcn/orgs","repos_url":"https://api.github.com/users/wallstreetcn/repos","events_url":"https://api.github.com/users/wallstreetcn/events{/privacy}","received_events_url":"https://api.github.com/users/wallstreetcn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wallstreetcn/sora","description":"金融超市","fork":false,"url":"https://api.github.com/repos/wallstreetcn/sora","forks_url":"https://api.github.com/repos/wallstreetcn/sora/forks","keys_url":"https://api.github.com/repos/wallstreetcn/sora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wallstreetcn/sora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wallstreetcn/sora/teams","hooks_url":"https://api.github.com/repos/wallstreetcn/sora/hooks","issue_events_url":"https://api.github.com/repos/wallstreetcn/sora/issues/events{/number}","events_url":"https://api.github.com/repos/wallstreetcn/sora/events","assignees_url":"https://api.github.com/repos/wallstreetcn/sora/assignees{/user}","branches_url":"https://api.github.com/repos/wallstreetcn/sora/branches{/branch}","tags_url":"https://api.github.com/repos/wallstreetcn/sora/tags","blobs_url":"https://api.github.com/repos/wallstreetcn/sora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wallstreetcn/sora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wallstreetcn/sora/git/refs{/sha}","trees_url":"https://api.github.com/repos/wallstreetcn/sora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wallstreetcn/sora/statuses/{sha}","languages_url":"https://api.github.com/repos/wallstreetcn/sora/languages","stargazers_url":"https://api.github.com/repos/wallstreetcn/sora/stargazers","contributors_url":"https://api.github.com/repos/wallstreetcn/sora/contributors","subscribers_url":"https://api.github.com/repos/wallstreetcn/sora/subscribers","subscription_url":"https://api.github.com/repos/wallstreetcn/sora/subscription","commits_url":"https://api.github.com/repos/wallstreetcn/sora/commits{/sha}","git_commits_url":"https://api.github.com/repos/wallstreetcn/sora/git/commits{/sha}","comments_url":"https://api.github.com/repos/wallstreetcn/sora/comments{/number}","issue_comment_url":"https://api.github.com/repos/wallstreetcn/sora/issues/comments{/number}","contents_url":"https://api.github.com/repos/wallstreetcn/sora/contents/{+path}","compare_url":"https://api.github.com/repos/wallstreetcn/sora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wallstreetcn/sora/merges","archive_url":"https://api.github.com/repos/wallstreetcn/sora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wallstreetcn/sora/downloads","issues_url":"https://api.github.com/repos/wallstreetcn/sora/issues{/number}","pulls_url":"https://api.github.com/repos/wallstreetcn/sora/pulls{/number}","milestones_url":"https://api.github.com/repos/wallstreetcn/sora/milestones{/number}","notifications_url":"https://api.github.com/repos/wallstreetcn/sora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wallstreetcn/sora/labels{/name}","releases_url":"https://api.github.com/repos/wallstreetcn/sora/releases{/id}","created_at":"2015-08-18T08:49:32Z","updated_at":"2015-09-08T10:10:54Z","pushed_at":"2015-09-24T15:41:48Z","git_url":"git://github.com/wallstreetcn/sora.git","ssh_url":"git@github.com:wallstreetcn/sora.git","clone_url":"https://github.com/wallstreetcn/sora.git","svn_url":"https://github.com/wallstreetcn/sora","homepage":null,"size":1196,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"wallstreetcn:master","ref":"master","sha":"4422668bf5ce220673660b0accc23dbaf3e01ef9","user":{"login":"wallstreetcn","id":4260687,"avatar_url":"https://avatars.githubusercontent.com/u/4260687?v=3","gravatar_id":"","url":"https://api.github.com/users/wallstreetcn","html_url":"https://github.com/wallstreetcn","followers_url":"https://api.github.com/users/wallstreetcn/followers","following_url":"https://api.github.com/users/wallstreetcn/following{/other_user}","gists_url":"https://api.github.com/users/wallstreetcn/gists{/gist_id}","starred_url":"https://api.github.com/users/wallstreetcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallstreetcn/subscriptions","organizations_url":"https://api.github.com/users/wallstreetcn/orgs","repos_url":"https://api.github.com/users/wallstreetcn/repos","events_url":"https://api.github.com/users/wallstreetcn/events{/privacy}","received_events_url":"https://api.github.com/users/wallstreetcn/received_events","type":"Organization","site_admin":false},"repo":{"id":40961154,"name":"sora","full_name":"wallstreetcn/sora","owner":{"login":"wallstreetcn","id":4260687,"avatar_url":"https://avatars.githubusercontent.com/u/4260687?v=3","gravatar_id":"","url":"https://api.github.com/users/wallstreetcn","html_url":"https://github.com/wallstreetcn","followers_url":"https://api.github.com/users/wallstreetcn/followers","following_url":"https://api.github.com/users/wallstreetcn/following{/other_user}","gists_url":"https://api.github.com/users/wallstreetcn/gists{/gist_id}","starred_url":"https://api.github.com/users/wallstreetcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallstreetcn/subscriptions","organizations_url":"https://api.github.com/users/wallstreetcn/orgs","repos_url":"https://api.github.com/users/wallstreetcn/repos","events_url":"https://api.github.com/users/wallstreetcn/events{/privacy}","received_events_url":"https://api.github.com/users/wallstreetcn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wallstreetcn/sora","description":"金融超市","fork":false,"url":"https://api.github.com/repos/wallstreetcn/sora","forks_url":"https://api.github.com/repos/wallstreetcn/sora/forks","keys_url":"https://api.github.com/repos/wallstreetcn/sora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wallstreetcn/sora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wallstreetcn/sora/teams","hooks_url":"https://api.github.com/repos/wallstreetcn/sora/hooks","issue_events_url":"https://api.github.com/repos/wallstreetcn/sora/issues/events{/number}","events_url":"https://api.github.com/repos/wallstreetcn/sora/events","assignees_url":"https://api.github.com/repos/wallstreetcn/sora/assignees{/user}","branches_url":"https://api.github.com/repos/wallstreetcn/sora/branches{/branch}","tags_url":"https://api.github.com/repos/wallstreetcn/sora/tags","blobs_url":"https://api.github.com/repos/wallstreetcn/sora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wallstreetcn/sora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wallstreetcn/sora/git/refs{/sha}","trees_url":"https://api.github.com/repos/wallstreetcn/sora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wallstreetcn/sora/statuses/{sha}","languages_url":"https://api.github.com/repos/wallstreetcn/sora/languages","stargazers_url":"https://api.github.com/repos/wallstreetcn/sora/stargazers","contributors_url":"https://api.github.com/repos/wallstreetcn/sora/contributors","subscribers_url":"https://api.github.com/repos/wallstreetcn/sora/subscribers","subscription_url":"https://api.github.com/repos/wallstreetcn/sora/subscription","commits_url":"https://api.github.com/repos/wallstreetcn/sora/commits{/sha}","git_commits_url":"https://api.github.com/repos/wallstreetcn/sora/git/commits{/sha}","comments_url":"https://api.github.com/repos/wallstreetcn/sora/comments{/number}","issue_comment_url":"https://api.github.com/repos/wallstreetcn/sora/issues/comments{/number}","contents_url":"https://api.github.com/repos/wallstreetcn/sora/contents/{+path}","compare_url":"https://api.github.com/repos/wallstreetcn/sora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wallstreetcn/sora/merges","archive_url":"https://api.github.com/repos/wallstreetcn/sora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wallstreetcn/sora/downloads","issues_url":"https://api.github.com/repos/wallstreetcn/sora/issues{/number}","pulls_url":"https://api.github.com/repos/wallstreetcn/sora/pulls{/number}","milestones_url":"https://api.github.com/repos/wallstreetcn/sora/milestones{/number}","notifications_url":"https://api.github.com/repos/wallstreetcn/sora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wallstreetcn/sora/labels{/name}","releases_url":"https://api.github.com/repos/wallstreetcn/sora/releases{/id}","created_at":"2015-08-18T08:49:32Z","updated_at":"2015-09-08T10:10:54Z","pushed_at":"2015-09-24T15:41:48Z","git_url":"git://github.com/wallstreetcn/sora.git","ssh_url":"git@github.com:wallstreetcn/sora.git","clone_url":"https://github.com/wallstreetcn/sora.git","svn_url":"https://github.com/wallstreetcn/sora","homepage":null,"size":1196,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wallstreetcn/sora/pulls/27"},"html":{"href":"https://github.com/wallstreetcn/sora/pull/27"},"issue":{"href":"https://api.github.com/repos/wallstreetcn/sora/issues/27"},"comments":{"href":"https://api.github.com/repos/wallstreetcn/sora/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/wallstreetcn/sora/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/wallstreetcn/sora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wallstreetcn/sora/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/wallstreetcn/sora/statuses/22f5d08b66c4a9df38c2750a478d277187ce5045"}}}}