{"action":"closed","issue":{"url":"https://api.github.com/repos/thelia-modules/TheliaStudio/issues/7","labels_url":"https://api.github.com/repos/thelia-modules/TheliaStudio/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/thelia-modules/TheliaStudio/issues/7/comments","events_url":"https://api.github.com/repos/thelia-modules/TheliaStudio/issues/7/events","html_url":"https://github.com/thelia-modules/TheliaStudio/issues/7","id":59046515,"number":7,"title":"Consolidate the event constants","user":{"login":"gillesbourgeat","id":7335734,"avatar_url":"https://avatars.githubusercontent.com/u/7335734?v=3","gravatar_id":"","url":"https://api.github.com/users/gillesbourgeat","html_url":"https://github.com/gillesbourgeat","followers_url":"https://api.github.com/users/gillesbourgeat/followers","following_url":"https://api.github.com/users/gillesbourgeat/following{/other_user}","gists_url":"https://api.github.com/users/gillesbourgeat/gists{/gist_id}","starred_url":"https://api.github.com/users/gillesbourgeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gillesbourgeat/subscriptions","organizations_url":"https://api.github.com/users/gillesbourgeat/orgs","repos_url":"https://api.github.com/users/gillesbourgeat/repos","events_url":"https://api.github.com/users/gillesbourgeat/events{/privacy}","received_events_url":"https://api.github.com/users/gillesbourgeat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thelia-modules/TheliaStudio/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"lovenunu","id":6106094,"avatar_url":"https://avatars.githubusercontent.com/u/6106094?v=3","gravatar_id":"","url":"https://api.github.com/users/lovenunu","html_url":"https://github.com/lovenunu","followers_url":"https://api.github.com/users/lovenunu/followers","following_url":"https://api.github.com/users/lovenunu/following{/other_user}","gists_url":"https://api.github.com/users/lovenunu/gists{/gist_id}","starred_url":"https://api.github.com/users/lovenunu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovenunu/subscriptions","organizations_url":"https://api.github.com/users/lovenunu/orgs","repos_url":"https://api.github.com/users/lovenunu/repos","events_url":"https://api.github.com/users/lovenunu/events{/privacy}","received_events_url":"https://api.github.com/users/lovenunu/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/thelia-modules/TheliaStudio/milestones/2","html_url":"https://github.com/thelia-modules/TheliaStudio/milestones/1.4","labels_url":"https://api.github.com/repos/thelia-modules/TheliaStudio/milestones/2/labels","id":1012625,"number":2,"title":"1.4","description":"","creator":{"login":"lovenunu","id":6106094,"avatar_url":"https://avatars.githubusercontent.com/u/6106094?v=3","gravatar_id":"","url":"https://api.github.com/users/lovenunu","html_url":"https://github.com/lovenunu","followers_url":"https://api.github.com/users/lovenunu/followers","following_url":"https://api.github.com/users/lovenunu/following{/other_user}","gists_url":"https://api.github.com/users/lovenunu/gists{/gist_id}","starred_url":"https://api.github.com/users/lovenunu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovenunu/subscriptions","organizations_url":"https://api.github.com/users/lovenunu/orgs","repos_url":"https://api.github.com/users/lovenunu/repos","events_url":"https://api.github.com/users/lovenunu/events{/privacy}","received_events_url":"https://api.github.com/users/lovenunu/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2015-03-09T15:55:06Z","updated_at":"2015-03-11T08:55:15Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-02-26T09:48:34Z","updated_at":"2015-03-11T08:55:15Z","closed_at":"2015-03-11T08:55:15Z","body":"Hello,\r\n\r\nConsolidate the event constants\r\n\r\nExemple for : \r\n- tables : book, author, publishing_house\r\n- module name : Bookstore\r\n\r\nCurrent structure : \r\n```yaml\r\nBookstore\r\n    Event\r\n        BookEvents\r\n        AuthorEvents\r\n        PublishingHouse\r\n```\r\n\r\nNew structure : \r\n```yaml\r\nBookstore\r\n    Event\r\n        BookstoreEvents\r\n```\r\n\r\n```php\r\nnamespace Bookstore\\Event\\Base;\r\n\r\n/**\r\n * Class BookstoreEvents\r\n * @package Bookstore\\Event\\Base\r\n * @author YourFather :)\r\n */\r\nclass BookstoreEvents\r\n{\r\n    const BOOK_CREATE = \"action.bookstore.book.create\";\r\n    const BOOK_UPDATE = \"action.bookstore.book.update\";\r\n    const BOOK_DELETE = \"action.bookstore.book.delete\";\r\n    const AUTHOR_CREATE = \"action.bookstore.author.create\";\r\n    const AUTHOR_UPDATE = \"action.bookstore.author.update\";\r\n    const AUTHOR_DELETE = \"action.bookstore.author.delete\";\r\n    const PUBLISHING_HOUSE_CREATE = \"action.bookstore.publishing_house.create\";\r\n    const PUBLISHING_HOUSE_UPDATE = \"action.bookstore.publishing_house.update\";\r\n    const PUBLISHING_HOUSE_DELETE = \"action.bookstore.publishing_house.delete\";\r\n}\r\n```\r\nCheers,"}}