{"action":"closed","issue":{"url":"https://api.github.com/repos/sonata-project/ecommerce/issues/394","repository_url":"https://api.github.com/repos/sonata-project/ecommerce","labels_url":"https://api.github.com/repos/sonata-project/ecommerce/issues/394/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/ecommerce/issues/394/comments","events_url":"https://api.github.com/repos/sonata-project/ecommerce/issues/394/events","html_url":"https://github.com/sonata-project/ecommerce/issues/394","id":184476064,"number":394,"title":"Sonata\\Component\\Event\\TransformerEvents.php","user":{"login":"chusket","id":4105610,"avatar_url":"https://avatars3.githubusercontent.com/u/4105610?v=3","gravatar_id":"","url":"https://api.github.com/users/chusket","html_url":"https://github.com/chusket","followers_url":"https://api.github.com/users/chusket/followers","following_url":"https://api.github.com/users/chusket/following{/other_user}","gists_url":"https://api.github.com/users/chusket/gists{/gist_id}","starred_url":"https://api.github.com/users/chusket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chusket/subscriptions","organizations_url":"https://api.github.com/users/chusket/orgs","repos_url":"https://api.github.com/users/chusket/repos","events_url":"https://api.github.com/users/chusket/events{/privacy}","received_events_url":"https://api.github.com/users/chusket/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-21T12:42:17Z","updated_at":"2017-04-02T14:53:44Z","closed_at":"2017-04-02T14:53:44Z","body":"All constants are making reference to a \"pre\" event.  \n\n```\n const PRE_BASKET_TO_ORDER_TRANSFORM = 'sonata.ecommerce.pre_basket_to_order_transform';\nconst POST_BASKET_TO_ORDER_TRANSFORM = 'sonata.ecommerce.pre_basket_to_order_transform';\nconst PRE_ORDER_TO_BASKET_TRANSFORM = 'sonata.ecommerce.pre_order_to_basket_transform';\nconst POST_ORDER_TO_BASKET_TRANSFORM = 'sonata.ecommerce.pre_order_to_basket_transform';\nconst PRE_ORDER_TO_INVOICE_TRANSFORM = 'sonata.ecommerce.pre_order_to_invoice_transform';\nconst POST_ORDER_TO_INVOICE_TRANSFORM = 'sonata.ecommerce.pre_order_to_invoice_transform';\n```\n\nI think that should be:\n\n```\nconst PRE_BASKET_TO_ORDER_TRANSFORM   = 'sonata.ecommerce.pre_basket_to_order_transform';\nconst POST_BASKET_TO_ORDER_TRANSFORM  = 'sonata.ecommerce.post_basket_to_order_transform';\n\nconst PRE_ORDER_TO_BASKET_TRANSFORM   = 'sonata.ecommerce.pre_order_to_basket_transform';\nconst POST_ORDER_TO_BASKET_TRANSFORM  = 'sonata.ecommerce.post_order_to_basket_transform';\n\nconst PRE_ORDER_TO_INVOICE_TRANSFORM  = 'sonata.ecommerce.pre_order_to_invoice_transform';\nconst POST_ORDER_TO_INVOICE_TRANSFORM = 'sonata.ecommerce.post_order_to_invoice_transform';\n```\n"}}
{"actor":{"display_login":"jordisala1991"}}