{"action":"created","issue":{"url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1680","labels_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1680/labels{/name}","comments_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1680/comments","events_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1680/events","html_url":"https://github.com/phpDocumentor/phpDocumentor2/pull/1680","id":119582279,"number":1680,"title":"[WIP] Feature/validation","user":{"login":"jaapio","id":1060433,"avatar_url":"https://avatars.githubusercontent.com/u/1060433?v=3","gravatar_id":"","url":"https://api.github.com/users/jaapio","html_url":"https://github.com/jaapio","followers_url":"https://api.github.com/users/jaapio/followers","following_url":"https://api.github.com/users/jaapio/following{/other_user}","gists_url":"https://api.github.com/users/jaapio/gists{/gist_id}","starred_url":"https://api.github.com/users/jaapio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaapio/subscriptions","organizations_url":"https://api.github.com/users/jaapio/orgs","repos_url":"https://api.github.com/users/jaapio/repos","events_url":"https://api.github.com/users/jaapio/events{/privacy}","received_events_url":"https://api.github.com/users/jaapio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"jaapio","id":1060433,"avatar_url":"https://avatars.githubusercontent.com/u/1060433?v=3","gravatar_id":"","url":"https://api.github.com/users/jaapio","html_url":"https://github.com/jaapio","followers_url":"https://api.github.com/users/jaapio/followers","following_url":"https://api.github.com/users/jaapio/following{/other_user}","gists_url":"https://api.github.com/users/jaapio/gists{/gist_id}","starred_url":"https://api.github.com/users/jaapio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaapio/subscriptions","organizations_url":"https://api.github.com/users/jaapio/orgs","repos_url":"https://api.github.com/users/jaapio/repos","events_url":"https://api.github.com/users/jaapio/events{/privacy}","received_events_url":"https://api.github.com/users/jaapio/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/milestones/30","html_url":"https://github.com/phpDocumentor/phpDocumentor2/milestones/3.0%20-%20Documentation%20Standards","labels_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/milestones/30/labels","id":1439855,"number":30,"title":"3.0 - Documentation Standards","description":"","creator":{"login":"mvriel","id":193704,"avatar_url":"https://avatars.githubusercontent.com/u/193704?v=3","gravatar_id":"","url":"https://api.github.com/users/mvriel","html_url":"https://github.com/mvriel","followers_url":"https://api.github.com/users/mvriel/followers","following_url":"https://api.github.com/users/mvriel/following{/other_user}","gists_url":"https://api.github.com/users/mvriel/gists{/gist_id}","starred_url":"https://api.github.com/users/mvriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvriel/subscriptions","organizations_url":"https://api.github.com/users/mvriel/orgs","repos_url":"https://api.github.com/users/mvriel/repos","events_url":"https://api.github.com/users/mvriel/events{/privacy}","received_events_url":"https://api.github.com/users/mvriel/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-12-02T15:53:51Z","updated_at":"2015-12-02T15:58:47Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-11-30T21:13:50Z","updated_at":"2015-12-06T13:50:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/1680","html_url":"https://github.com/phpDocumentor/phpDocumentor2/pull/1680","diff_url":"https://github.com/phpDocumentor/phpDocumentor2/pull/1680.diff","patch_url":"https://github.com/phpDocumentor/phpDocumentor2/pull/1680.patch"},"body":"Validation setup."},"comment":{"url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/comments/162319369","html_url":"https://github.com/phpDocumentor/phpDocumentor2/pull/1680#issuecomment-162319369","issue_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1680","id":162319369,"user":{"login":"jaapio","id":1060433,"avatar_url":"https://avatars.githubusercontent.com/u/1060433?v=3","gravatar_id":"","url":"https://api.github.com/users/jaapio","html_url":"https://github.com/jaapio","followers_url":"https://api.github.com/users/jaapio/followers","following_url":"https://api.github.com/users/jaapio/following{/other_user}","gists_url":"https://api.github.com/users/jaapio/gists{/gist_id}","starred_url":"https://api.github.com/users/jaapio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaapio/subscriptions","organizations_url":"https://api.github.com/users/jaapio/orgs","repos_url":"https://api.github.com/users/jaapio/repos","events_url":"https://api.github.com/users/jaapio/events{/privacy}","received_events_url":"https://api.github.com/users/jaapio/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T13:50:45Z","updated_at":"2015-12-06T13:50:45Z","body":"Lets see how that will work out. It feels a bit strange to inject an object and modify that with other classes.  It would have been nice if we could make the violations collection immutable. But at the moment I don't have a better solution. I think this is more or less the issue of doing these kind of things in middlewares. \r\n\r\nEven when we move the validation to a step after the parsing process the voilations have to be stored in the DI-container. Otherwise the view doesn't have access to it. Or we should find a way to add those violations to the project. But that will result in the same issues as you are seeing with the file class. "}}