{"action":"created","issue":{"url":"https://api.github.com/repos/mlambley/swagception/issues/1","repository_url":"https://api.github.com/repos/mlambley/swagception","labels_url":"https://api.github.com/repos/mlambley/swagception/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mlambley/swagception/issues/1/comments","events_url":"https://api.github.com/repos/mlambley/swagception/issues/1/events","html_url":"https://github.com/mlambley/swagception/issues/1","id":333880112,"node_id":"MDU6SXNzdWUzMzM4ODAxMTI=","number":1,"title":"PathHandlerLoader annotation keys","user":{"login":"mlambley","id":17264636,"node_id":"MDQ6VXNlcjE3MjY0NjM2","avatar_url":"https://avatars1.githubusercontent.com/u/17264636?v=4","gravatar_id":"","url":"https://api.github.com/users/mlambley","html_url":"https://github.com/mlambley","followers_url":"https://api.github.com/users/mlambley/followers","following_url":"https://api.github.com/users/mlambley/following{/other_user}","gists_url":"https://api.github.com/users/mlambley/gists{/gist_id}","starred_url":"https://api.github.com/users/mlambley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlambley/subscriptions","organizations_url":"https://api.github.com/users/mlambley/orgs","repos_url":"https://api.github.com/users/mlambley/repos","events_url":"https://api.github.com/users/mlambley/events{/privacy}","received_events_url":"https://api.github.com/users/mlambley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T00:03:48Z","updated_at":"2018-06-24T04:08:53Z","closed_at":"2018-06-24T04:08:53Z","author_association":"OWNER","body":"```php\r\n/**\r\n * Accepts a namespace and a path. Requires all files in that path.\r\n * Fetches classes which are in the namespace, implements the HandlesPath interface, and contain the specified annotation.\r\n */\r\n\r\nprotected $annotationKeys;\r\n\r\n    public function __construct()\r\n    {\r\n        $this->loadAnnotationKeys();\r\n    }\r\n\r\n                    foreach ($this->annotationKeys as $key) {\r\n                        if (isset($annotations[$key])) {\r\n                            foreach ($annotations[$key] as $path) {\r\n                                if (isset($paths[$path])) {\r\n                                    throw new \\Exception(sprintf('Classes %1$s and %2$s are both marked as handling path %3$s', $paths[$path], $class, $path));\r\n                                }\r\n                                $paths[$path] = $class;\r\n                            }\r\n                        }\r\n                    }\r\n\r\n    public function getAnnotationKeys()\r\n    {\r\n        return $this->annotationKeys;\r\n    }\r\n\r\n    public function withAnnotationKeys($annotationKeys)\r\n    {\r\n        $this->annotationKeys = $annotationKeys;\r\n        return $this;\r\n    }\r\n    \r\n    protected function loadAnnotationKeys()\r\n    {\r\n        $this->annotationKeys = ['path'];\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/mlambley/swagception/issues/comments/399727456","html_url":"https://github.com/mlambley/swagception/issues/1#issuecomment-399727456","issue_url":"https://api.github.com/repos/mlambley/swagception/issues/1","id":399727456,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTcyNzQ1Ng==","user":{"login":"mlambley","id":17264636,"node_id":"MDQ6VXNlcjE3MjY0NjM2","avatar_url":"https://avatars1.githubusercontent.com/u/17264636?v=4","gravatar_id":"","url":"https://api.github.com/users/mlambley","html_url":"https://github.com/mlambley","followers_url":"https://api.github.com/users/mlambley/followers","following_url":"https://api.github.com/users/mlambley/following{/other_user}","gists_url":"https://api.github.com/users/mlambley/gists{/gist_id}","starred_url":"https://api.github.com/users/mlambley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlambley/subscriptions","organizations_url":"https://api.github.com/users/mlambley/orgs","repos_url":"https://api.github.com/users/mlambley/repos","events_url":"https://api.github.com/users/mlambley/events{/privacy}","received_events_url":"https://api.github.com/users/mlambley/received_events","type":"User","site_admin":false},"created_at":"2018-06-24T04:08:53Z","updated_at":"2018-06-24T04:08:53Z","author_association":"OWNER","body":"Closed by https://github.com/mlambley/swagception/commit/c136351c847c1e1983a825453a54c361c7a402f4"}}
{"actor":{"display_login":"mlambley"}}