{"action":"created","issue":{"url":"https://api.github.com/repos/phpro/soap-client/issues/162","repository_url":"https://api.github.com/repos/phpro/soap-client","labels_url":"https://api.github.com/repos/phpro/soap-client/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/phpro/soap-client/issues/162/comments","events_url":"https://api.github.com/repos/phpro/soap-client/issues/162/events","html_url":"https://github.com/phpro/soap-client/issues/162","id":327696565,"number":162,"title":"Check if zend code is installed","user":{"login":"janvernieuwe","id":7813447,"avatar_url":"https://avatars1.githubusercontent.com/u/7813447?v=4","gravatar_id":"","url":"https://api.github.com/users/janvernieuwe","html_url":"https://github.com/janvernieuwe","followers_url":"https://api.github.com/users/janvernieuwe/followers","following_url":"https://api.github.com/users/janvernieuwe/following{/other_user}","gists_url":"https://api.github.com/users/janvernieuwe/gists{/gist_id}","starred_url":"https://api.github.com/users/janvernieuwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janvernieuwe/subscriptions","organizations_url":"https://api.github.com/users/janvernieuwe/orgs","repos_url":"https://api.github.com/users/janvernieuwe/repos","events_url":"https://api.github.com/users/janvernieuwe/events{/privacy}","received_events_url":"https://api.github.com/users/janvernieuwe/received_events","type":"User","site_admin":false},"labels":[{"id":233212083,"url":"https://api.github.com/repos/phpro/soap-client/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-30T11:53:08Z","updated_at":"2018-05-30T12:04:54Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"A small ease of use improvement.\r\n\r\nBefore running commands that need zend-code, quicky check if it is installed and display a usefull error message.\r\n\r\n```\r\n        if (!class_exists(ClassGenerator::class)) {\r\n            $io->error(['zend-code not installed', 'composer require --dev zendframework/zend-code:^3.1.0']);\r\n\r\n            return 0;\r\n        }\r\n```\r\n\r\nSample implementation for a single command, this needs to be centralised so all generating commands can use it."},"comment":{"url":"https://api.github.com/repos/phpro/soap-client/issues/comments/393136025","html_url":"https://github.com/phpro/soap-client/issues/162#issuecomment-393136025","issue_url":"https://api.github.com/repos/phpro/soap-client/issues/162","id":393136025,"user":{"login":"janvernieuwe","id":7813447,"avatar_url":"https://avatars1.githubusercontent.com/u/7813447?v=4","gravatar_id":"","url":"https://api.github.com/users/janvernieuwe","html_url":"https://github.com/janvernieuwe","followers_url":"https://api.github.com/users/janvernieuwe/followers","following_url":"https://api.github.com/users/janvernieuwe/following{/other_user}","gists_url":"https://api.github.com/users/janvernieuwe/gists{/gist_id}","starred_url":"https://api.github.com/users/janvernieuwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janvernieuwe/subscriptions","organizations_url":"https://api.github.com/users/janvernieuwe/orgs","repos_url":"https://api.github.com/users/janvernieuwe/repos","events_url":"https://api.github.com/users/janvernieuwe/events{/privacy}","received_events_url":"https://api.github.com/users/janvernieuwe/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T12:04:54Z","updated_at":"2018-05-30T12:04:54Z","author_association":"CONTRIBUTOR","body":"I think a basic check will be enough for now, it's mostly to catch that zend-code is not installed yet."}}
{"actor":{"display_login":"janvernieuwe"}}