{"action":"opened","issue":{"url":"https://api.github.com/repos/thiagoarioli/yii2-rest-doc-slade-version/issues/1","repository_url":"https://api.github.com/repos/thiagoarioli/yii2-rest-doc-slade-version","labels_url":"https://api.github.com/repos/thiagoarioli/yii2-rest-doc-slade-version/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/thiagoarioli/yii2-rest-doc-slade-version/issues/1/comments","events_url":"https://api.github.com/repos/thiagoarioli/yii2-rest-doc-slade-version/issues/1/events","html_url":"https://github.com/thiagoarioli/yii2-rest-doc-slade-version/issues/1","id":164997824,"number":1,"title":"Проблемы с генерацией документации для контроллера у которого атрибут $modelClass = false","user":{"login":"njspok","id":1404034,"avatar_url":"https://avatars.githubusercontent.com/u/1404034?v=3","gravatar_id":"","url":"https://api.github.com/users/njspok","html_url":"https://github.com/njspok","followers_url":"https://api.github.com/users/njspok/followers","following_url":"https://api.github.com/users/njspok/following{/other_user}","gists_url":"https://api.github.com/users/njspok/gists{/gist_id}","starred_url":"https://api.github.com/users/njspok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njspok/subscriptions","organizations_url":"https://api.github.com/users/njspok/orgs","repos_url":"https://api.github.com/users/njspok/repos","events_url":"https://api.github.com/users/njspok/events{/privacy}","received_events_url":"https://api.github.com/users/njspok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-12T05:35:24Z","updated_at":"2016-07-12T05:35:24Z","closed_at":null,"body":" Есть контроллер, который не нуждается в задании атрибута modelClass\r\n```\r\nclass SomeRESTController extends Controller {\r\n    public $allowedActions = ['create'];\r\n    public $modelClass = false; // модель не задана\r\n```\r\n\r\nПри попытке сегенерироавть документацию, выпадает ошибка\r\n```\r\nException 'ReflectionException' with message 'Class  does not exist'\r\n\r\nin /var/www/html/vendor/pahanini/yii2-rest-doc/models/ControllerParser.php:64\r\n\r\nStack trace:\r\n#0 /var/www/html/vendor/pahanini/yii2-rest-doc/models/ControllerParser.php(64): ReflectionClass->__construct('')\r\n#1 /var/www/html/vendor/pahanini/yii2-rest-doc/components/Context.php(39): pahanini\\restdoc\\models\\ControllerParser->parse(Object(pahanini\\restdoc\\models\\ControllerDoc))\r\n#2 /var/www/html/vendor/pahanini/yii2-rest-doc/components/Context.php(120): pahanini\\restdoc\\components\\Context->addControllerDoc('\\\\backend\\\\module...')\r\n#3 /var/www/html/vendor/pahanini/yii2-rest-doc/components/Context.php(99): pahanini\\restdoc\\components\\Context->addFile('/var/www/html/b...')\r\n#4 /var/www/html/vendor/pahanini/yii2-rest-doc/components/Context.php(58): pahanini\\restdoc\\components\\Context->addDirs(Array)\r\n#5 /var/www/html/vendor/pahanini/yii2-rest-doc/components/Context.php(82): pahanini\\restdoc\\components\\Context->addModule(Object(backend\\modules\\api\\modules\\v3\\Module))\r\n#6 /var/www/html/vendor/pahanini/yii2-rest-doc/controllers/BuildController.php(54): pahanini\\restdoc\\components\\Context->addModules(Array)\r\n#7 [internal function]: pahanini\\restdoc\\controllers\\BuildController->actionRun()\r\n#8 /var/www/html/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array)\r\n#9 /var/www/html/vendor/yiisoft/yii2/base/Controller.php(154): yii\\base\\InlineAction->runWithParams(Array)\r\n#10 /var/www/html/vendor/yiisoft/yii2/console/Controller.php(119): yii\\base\\Controller->runAction('', Array)\r\n#11 /var/www/html/vendor/yiisoft/yii2/base/Module.php(454): yii\\console\\Controller->runAction('', Array)\r\n#12 /var/www/html/vendor/yiisoft/yii2/console/Application.php(176): yii\\base\\Module->runAction('backendapidoc', Array)\r\n#13 /var/www/html/vendor/yiisoft/yii2/console/Application.php(143): yii\\console\\Application->runAction('backendapidoc', Array)\r\n#14 /var/www/html/vendor/yiisoft/yii2/base/Application.php(375): yii\\console\\Application->handleRequest(Object(yii\\console\\Request))\r\n#15 /var/www/html/yii(31): yii\\base\\Application->run()\r\n#16 {main}\r\nmake: *** [apigen] Error 1\r\n```\r\nВозможно ли как-то для таких случаев самостоятельно в комментарии к контроллеру описать необходимые поля?"}}
{"actor":{"display_login":"njspok"}}