{"action":"closed","issue":{"url":"https://api.github.com/repos/devinsays/woocommerce-coupon-restrictions/issues/31","repository_url":"https://api.github.com/repos/devinsays/woocommerce-coupon-restrictions","labels_url":"https://api.github.com/repos/devinsays/woocommerce-coupon-restrictions/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/devinsays/woocommerce-coupon-restrictions/issues/31/comments","events_url":"https://api.github.com/repos/devinsays/woocommerce-coupon-restrictions/issues/31/events","html_url":"https://github.com/devinsays/woocommerce-coupon-restrictions/issues/31","id":334052696,"node_id":"MDU6SXNzdWUzMzQwNTI2OTY=","number":31,"title":"[review] Autoloader","user":{"login":"javorszky","id":1196299,"node_id":"MDQ6VXNlcjExOTYyOTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1196299?v=4","gravatar_id":"","url":"https://api.github.com/users/javorszky","html_url":"https://github.com/javorszky","followers_url":"https://api.github.com/users/javorszky/followers","following_url":"https://api.github.com/users/javorszky/following{/other_user}","gists_url":"https://api.github.com/users/javorszky/gists{/gist_id}","starred_url":"https://api.github.com/users/javorszky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javorszky/subscriptions","organizations_url":"https://api.github.com/users/javorszky/orgs","repos_url":"https://api.github.com/users/javorszky/repos","events_url":"https://api.github.com/users/javorszky/events{/privacy}","received_events_url":"https://api.github.com/users/javorszky/received_events","type":"User","site_admin":false},"labels":[{"id":970673164,"node_id":"MDU6TGFiZWw5NzA2NzMxNjQ=","url":"https://api.github.com/repos/devinsays/woocommerce-coupon-restrictions/labels/investigate","name":"investigate","color":"c2e0c6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T12:22:48Z","updated_at":"2018-07-10T20:13:06Z","closed_at":"2018-07-10T20:13:06Z","author_association":"NONE","body":"Because you're already using composer, you could potentially add a custom autoloader to the plugin, which would replace having to include files manually.\r\n\r\nSee https://github.com/mindsize/wp-plugin-base for how we do autoloaders in our plugin base (tldr: a composer package is needed (see `composer.json`, the one called xrstf), and the file of the autoloader included once.\r\n\r\nTotally optional, depends on whether you want to include the vendor files in the distributed plugin.\r\n\r\nAt that point you need to separate tests into `require-dev` and autoloader into `require`."}}
{"actor":{"display_login":"devinsays"}}