{"action":"created","issue":{"url":"https://api.github.com/repos/yiimaker/yii2-email-templates/issues/27","repository_url":"https://api.github.com/repos/yiimaker/yii2-email-templates","labels_url":"https://api.github.com/repos/yiimaker/yii2-email-templates/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/yiimaker/yii2-email-templates/issues/27/comments","events_url":"https://api.github.com/repos/yiimaker/yii2-email-templates/issues/27/events","html_url":"https://github.com/yiimaker/yii2-email-templates/issues/27","id":327346638,"number":27,"title":"Interface as parameter in constructor","user":{"login":"Geoffry304","id":3656871,"avatar_url":"https://avatars2.githubusercontent.com/u/3656871?v=4","gravatar_id":"","url":"https://api.github.com/users/Geoffry304","html_url":"https://github.com/Geoffry304","followers_url":"https://api.github.com/users/Geoffry304/followers","following_url":"https://api.github.com/users/Geoffry304/following{/other_user}","gists_url":"https://api.github.com/users/Geoffry304/gists{/gist_id}","starred_url":"https://api.github.com/users/Geoffry304/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geoffry304/subscriptions","organizations_url":"https://api.github.com/users/Geoffry304/orgs","repos_url":"https://api.github.com/users/Geoffry304/repos","events_url":"https://api.github.com/users/Geoffry304/events{/privacy}","received_events_url":"https://api.github.com/users/Geoffry304/received_events","type":"User","site_admin":false},"labels":[{"id":576314885,"url":"https://api.github.com/repos/yiimaker/yii2-email-templates/labels/type:%20question","name":"type: question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":{"login":"greeflas","id":17636915,"avatar_url":"https://avatars3.githubusercontent.com/u/17636915?v=4","gravatar_id":"","url":"https://api.github.com/users/greeflas","html_url":"https://github.com/greeflas","followers_url":"https://api.github.com/users/greeflas/followers","following_url":"https://api.github.com/users/greeflas/following{/other_user}","gists_url":"https://api.github.com/users/greeflas/gists{/gist_id}","starred_url":"https://api.github.com/users/greeflas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greeflas/subscriptions","organizations_url":"https://api.github.com/users/greeflas/orgs","repos_url":"https://api.github.com/users/greeflas/repos","events_url":"https://api.github.com/users/greeflas/events{/privacy}","received_events_url":"https://api.github.com/users/greeflas/received_events","type":"User","site_admin":false},"assignees":[{"login":"greeflas","id":17636915,"avatar_url":"https://avatars3.githubusercontent.com/u/17636915?v=4","gravatar_id":"","url":"https://api.github.com/users/greeflas","html_url":"https://github.com/greeflas","followers_url":"https://api.github.com/users/greeflas/followers","following_url":"https://api.github.com/users/greeflas/following{/other_user}","gists_url":"https://api.github.com/users/greeflas/gists{/gist_id}","starred_url":"https://api.github.com/users/greeflas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greeflas/subscriptions","organizations_url":"https://api.github.com/users/greeflas/orgs","repos_url":"https://api.github.com/users/greeflas/repos","events_url":"https://api.github.com/users/greeflas/events{/privacy}","received_events_url":"https://api.github.com/users/greeflas/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-05-29T14:29:53Z","updated_at":"2018-05-29T16:34:12Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI have an error on the latest version, I think the problem is the interface class as the paramter in the construct method of templatemanager.php\r\n\r\nException (Not instantiable) 'yii\\di\\NotInstantiableException' with message 'Can not instantiate ymaker\\email\\templates\\repositories\\EmailTemplatesRepositoryInterface.' \r\n\r\n```\r\nin C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\di\\Container.php:372\r\n\r\nStack trace:\r\n#0 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\di\\Container.php(156): yii\\di\\Container->build('ymaker\\\\email\\\\te...', Array, Array)\r\n#1 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\di\\Container.php(462): yii\\di\\Container->get('ymaker\\\\email\\\\te...')\r\n#2 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\di\\Container.php(370): yii\\di\\Container->resolveDependencies(Array, Object(ReflectionClass))\r\n#3 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\di\\Container.php(156): yii\\di\\Container->build('ymaker\\\\email\\\\te...', Array, Array)\r\n#4 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\BaseYii.php(349): yii\\di\\Container->get('ymaker\\\\email\\\\te...', Array, Array)\r\n#5 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\di\\ServiceLocator.php(137): yii\\BaseYii::createObject(Array)\r\n#6 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\base\\Module.php(742): yii\\di\\ServiceLocator->get('templateManager', false)\r\n#7 C:\\xampp\\htdocs\\veto\\models\\Mail.php(175): yii\\base\\Module->get('templateManager', false)\r\n#8 C:\\xampp\\htdocs\\veto\\controllers\\MailController.php(45): app\\models\\Mail->setCorrectTemplate()\r\n#9 [internal function]: app\\controllers\\MailController->actionCreate()\r\n#10 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\base\\InlineAction.php(57): call_user_func_array(Array, Array)\r\n#11 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\base\\Controller.php(157): yii\\base\\InlineAction->runWithParams(Array)\r\n#12 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\base\\Module.php(528): yii\\base\\Controller->runAction('create', Array)\r\n#13 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\web\\Application.php(103): yii\\base\\Module->runAction('mail/create', Array)\r\n#14 C:\\xampp\\htdocs\\veto\\vendor\\yiisoft\\yii2\\base\\Application.php(386): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))\r\n#15 C:\\xampp\\htdocs\\veto\\web\\index.php(12): yii\\base\\Application->run()\r\n#16 {main}\r\n```"},"comment":{"url":"https://api.github.com/repos/yiimaker/yii2-email-templates/issues/comments/392843263","html_url":"https://github.com/yiimaker/yii2-email-templates/issues/27#issuecomment-392843263","issue_url":"https://api.github.com/repos/yiimaker/yii2-email-templates/issues/27","id":392843263,"user":{"login":"greeflas","id":17636915,"avatar_url":"https://avatars3.githubusercontent.com/u/17636915?v=4","gravatar_id":"","url":"https://api.github.com/users/greeflas","html_url":"https://github.com/greeflas","followers_url":"https://api.github.com/users/greeflas/followers","following_url":"https://api.github.com/users/greeflas/following{/other_user}","gists_url":"https://api.github.com/users/greeflas/gists{/gist_id}","starred_url":"https://api.github.com/users/greeflas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greeflas/subscriptions","organizations_url":"https://api.github.com/users/greeflas/orgs","repos_url":"https://api.github.com/users/greeflas/repos","events_url":"https://api.github.com/users/greeflas/events{/privacy}","received_events_url":"https://api.github.com/users/greeflas/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T16:34:12Z","updated_at":"2018-05-29T16:34:12Z","author_association":"MEMBER","body":"Hi @Geoffry304! I think you just need to configure your DI container like described in the guide\r\nhttps://github.com/yiimaker/yii2-email-templates/blob/master/docs/guide/template-manager.md#configuration"}}
{"actor":{"display_login":"greeflas"}}