{"action":"opened","issue":{"url":"https://api.github.com/repos/goldenapples/Co-Authors-Plus-Roles/issues/3","labels_url":"https://api.github.com/repos/goldenapples/Co-Authors-Plus-Roles/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/goldenapples/Co-Authors-Plus-Roles/issues/3/comments","events_url":"https://api.github.com/repos/goldenapples/Co-Authors-Plus-Roles/issues/3/events","html_url":"https://github.com/goldenapples/Co-Authors-Plus-Roles/issues/3","id":57201503,"number":3,"title":"Consider encapsulating classes of actions and filters in singletons","user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-10T16:50:50Z","updated_at":"2015-02-10T16:50:50Z","closed_at":null,"body":"Rather than instantiating classes to a global, my preference is to use singletons because they:\r\n\r\n* Ensure the actions and filters aren't registered more than once\r\n* Provide a one-line, non-destructable interface to the class' logic\r\n\r\nWhat do you think about retooling to use singletons?"}}