GitHub PullRequestReviewCommentEvent at 2014-08-13 15:38:13
Repository: AdvertsPluginBundle
Actor: ahilles107
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/comments/16183504","id":16183504,"diff_hunk":"@@ -30,11 +31,26 @@ class LifecycleSubscriber implements EventSubscriberInterface\n \n     private $translator;\n \n-    public function __construct($em, $pluginsService, $translator)\n+    private $scheduler;\n+\n+    private $cronjobs;\n+\n+    private $systemPreferences;\n+\n+    public function __construct($em, $pluginsService, $translator, $scheduler, $systemPreferences)\n     {\n         $this->em = $em;\n         $this->pluginsService = $pluginsService;\n         $this->translator = $translator;\n+        $this->scheduler = $scheduler;\n+        $this->systemPreferences = $systemPreferences;\n+        $appDirectory = realpath(__DIR__.'/../../../../application/console');\n+        $this->cronjobs = array(\n+            \"Deactivate expired classifieds.\" => array(\n+                'command' => $appDirectory . ' classifieds:deactivate',\n+                'schedule' => '* * * * *',","path":"EventListener/LifecycleSubscriber.php","position":33,"original_position":33,"commit_id":"05e9e2f682246fd44e29c5e3d721a6f820b375a5","original_commit_id":"05e9e2f682246fd44e29c5e3d721a6f820b375a5","user":{"login":"ahilles107","id":298610,"avatar_url":"https://avatars.githubusercontent.com/u/298610?v=2","gravatar_id":"d56cace9a37a5553bc834bcb7237ab90","url":"https://api.github.com/users/ahilles107","html_url":"https://github.com/ahilles107","followers_url":"https://api.github.com/users/ahilles107/followers","following_url":"https://api.github.com/users/ahilles107/following{/other_user}","gists_url":"https://api.github.com/users/ahilles107/gists{/gist_id}","starred_url":"https://api.github.com/users/ahilles107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahilles107/subscriptions","organizations_url":"https://api.github.com/users/ahilles107/orgs","repos_url":"https://api.github.com/users/ahilles107/repos","events_url":"https://api.github.com/users/ahilles107/events{/privacy}","received_events_url":"https://api.github.com/users/ahilles107/received_events","type":"User","site_admin":false},"body":"on every minute? let's do it on every 20 minutes. ","created_at":"2014-08-13T15:38:13Z","updated_at":"2014-08-13T15:38:13Z","html_url":"https://github.com/ahilles107/AdvertsPluginBundle/pull/4#discussion_r16183504","pull_request_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/comments/16183504"},"html":{"href":"https://github.com/ahilles107/AdvertsPluginBundle/pull/4#discussion_r16183504"},"pull_request":{"href":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/4","id":19594613,"html_url":"https://github.com/ahilles107/AdvertsPluginBundle/pull/4","diff_url":"https://github.com/ahilles107/AdvertsPluginBundle/pull/4.diff","patch_url":"https://github.com/ahilles107/AdvertsPluginBundle/pull/4.patch","issue_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/issues/4","number":4,"state":"open","title":"WOBS-3277 User set classified to active/unactive, WOBS-3275 & cron job to deactivate expired classifieds","user":{"login":"takeit","id":562536,"avatar_url":"https://avatars.githubusercontent.com/u/562536?v=2","gravatar_id":"b5e3949860c1ff51d50420b34efde7cb","url":"https://api.github.com/users/takeit","html_url":"https://github.com/takeit","followers_url":"https://api.github.com/users/takeit/followers","following_url":"https://api.github.com/users/takeit/following{/other_user}","gists_url":"https://api.github.com/users/takeit/gists{/gist_id}","starred_url":"https://api.github.com/users/takeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeit/subscriptions","organizations_url":"https://api.github.com/users/takeit/orgs","repos_url":"https://api.github.com/users/takeit/repos","events_url":"https://api.github.com/users/takeit/events{/privacy}","received_events_url":"https://api.github.com/users/takeit/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-08-11T11:10:40Z","updated_at":"2014-08-13T15:38:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cb1ceb7900d071512be22378931ba1f9b98fd0c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/issues/4/comments","statuses_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/statuses/05e9e2f682246fd44e29c5e3d721a6f820b375a5","head":{"label":"takeit:master","ref":"master","sha":"05e9e2f682246fd44e29c5e3d721a6f820b375a5","user":{"login":"takeit","id":562536,"avatar_url":"https://avatars.githubusercontent.com/u/562536?v=2","gravatar_id":"b5e3949860c1ff51d50420b34efde7cb","url":"https://api.github.com/users/takeit","html_url":"https://github.com/takeit","followers_url":"https://api.github.com/users/takeit/followers","following_url":"https://api.github.com/users/takeit/following{/other_user}","gists_url":"https://api.github.com/users/takeit/gists{/gist_id}","starred_url":"https://api.github.com/users/takeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeit/subscriptions","organizations_url":"https://api.github.com/users/takeit/orgs","repos_url":"https://api.github.com/users/takeit/repos","events_url":"https://api.github.com/users/takeit/events{/privacy}","received_events_url":"https://api.github.com/users/takeit/received_events","type":"User","site_admin":false},"repo":{"id":20263117,"name":"AdvertsPluginBundle","full_name":"takeit/AdvertsPluginBundle","owner":{"login":"takeit","id":562536,"avatar_url":"https://avatars.githubusercontent.com/u/562536?v=2","gravatar_id":"b5e3949860c1ff51d50420b34efde7cb","url":"https://api.github.com/users/takeit","html_url":"https://github.com/takeit","followers_url":"https://api.github.com/users/takeit/followers","following_url":"https://api.github.com/users/takeit/following{/other_user}","gists_url":"https://api.github.com/users/takeit/gists{/gist_id}","starred_url":"https://api.github.com/users/takeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeit/subscriptions","organizations_url":"https://api.github.com/users/takeit/orgs","repos_url":"https://api.github.com/users/takeit/repos","events_url":"https://api.github.com/users/takeit/events{/privacy}","received_events_url":"https://api.github.com/users/takeit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/takeit/AdvertsPluginBundle","description":"Adverts Plugin Bundle","fork":true,"url":"https://api.github.com/repos/takeit/AdvertsPluginBundle","forks_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/forks","keys_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/teams","hooks_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/hooks","issue_events_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/issues/events{/number}","events_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/events","assignees_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/assignees{/user}","branches_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/branches{/branch}","tags_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/tags","blobs_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/languages","stargazers_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/stargazers","contributors_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/contributors","subscribers_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/subscribers","subscription_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/subscription","commits_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/issues/comments/{number}","contents_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/contents/{+path}","compare_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/merges","archive_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/downloads","issues_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/issues{/number}","pulls_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/labels{/name}","releases_url":"https://api.github.com/repos/takeit/AdvertsPluginBundle/releases{/id}","created_at":"2014-05-28T15:42:13Z","updated_at":"2014-08-11T11:07:19Z","pushed_at":"2014-08-13T15:23:33Z","git_url":"git://github.com/takeit/AdvertsPluginBundle.git","ssh_url":"git@github.com:takeit/AdvertsPluginBundle.git","clone_url":"https://github.com/takeit/AdvertsPluginBundle.git","svn_url":"https://github.com/takeit/AdvertsPluginBundle","homepage":null,"size":435,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ahilles107:master","ref":"master","sha":"a7bdb219cbfd7e4bd6a502bdd2a5ac9e49621f84","user":{"login":"ahilles107","id":298610,"avatar_url":"https://avatars.githubusercontent.com/u/298610?v=2","gravatar_id":"d56cace9a37a5553bc834bcb7237ab90","url":"https://api.github.com/users/ahilles107","html_url":"https://github.com/ahilles107","followers_url":"https://api.github.com/users/ahilles107/followers","following_url":"https://api.github.com/users/ahilles107/following{/other_user}","gists_url":"https://api.github.com/users/ahilles107/gists{/gist_id}","starred_url":"https://api.github.com/users/ahilles107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahilles107/subscriptions","organizations_url":"https://api.github.com/users/ahilles107/orgs","repos_url":"https://api.github.com/users/ahilles107/repos","events_url":"https://api.github.com/users/ahilles107/events{/privacy}","received_events_url":"https://api.github.com/users/ahilles107/received_events","type":"User","site_admin":false},"repo":{"id":9774822,"name":"AdvertsPluginBundle","full_name":"ahilles107/AdvertsPluginBundle","owner":{"login":"ahilles107","id":298610,"avatar_url":"https://avatars.githubusercontent.com/u/298610?v=2","gravatar_id":"d56cace9a37a5553bc834bcb7237ab90","url":"https://api.github.com/users/ahilles107","html_url":"https://github.com/ahilles107","followers_url":"https://api.github.com/users/ahilles107/followers","following_url":"https://api.github.com/users/ahilles107/following{/other_user}","gists_url":"https://api.github.com/users/ahilles107/gists{/gist_id}","starred_url":"https://api.github.com/users/ahilles107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahilles107/subscriptions","organizations_url":"https://api.github.com/users/ahilles107/orgs","repos_url":"https://api.github.com/users/ahilles107/repos","events_url":"https://api.github.com/users/ahilles107/events{/privacy}","received_events_url":"https://api.github.com/users/ahilles107/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahilles107/AdvertsPluginBundle","description":"Adverts Plugin Bundle","fork":false,"url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle","forks_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/forks","keys_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/teams","hooks_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/hooks","issue_events_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/issues/events{/number}","events_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/events","assignees_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/assignees{/user}","branches_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/branches{/branch}","tags_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/tags","blobs_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/languages","stargazers_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/stargazers","contributors_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/contributors","subscribers_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/subscribers","subscription_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/subscription","commits_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/issues/comments/{number}","contents_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/contents/{+path}","compare_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/merges","archive_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/downloads","issues_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/issues{/number}","pulls_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/labels{/name}","releases_url":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/releases{/id}","created_at":"2013-04-30T16:17:53Z","updated_at":"2014-07-22T08:38:15Z","pushed_at":"2014-08-08T14:03:43Z","git_url":"git://github.com/ahilles107/AdvertsPluginBundle.git","ssh_url":"git@github.com:ahilles107/AdvertsPluginBundle.git","clone_url":"https://github.com/ahilles107/AdvertsPluginBundle.git","svn_url":"https://github.com/ahilles107/AdvertsPluginBundle","homepage":null,"size":669,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/4"},"html":{"href":"https://github.com/ahilles107/AdvertsPluginBundle/pull/4"},"issue":{"href":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/issues/4"},"comments":{"href":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ahilles107/AdvertsPluginBundle/statuses/05e9e2f682246fd44e29c5e3d721a6f820b375a5"}}}}