{"action":"created","issue":{"url":"https://api.github.com/repos/Level-2/Dice/issues/93","labels_url":"https://api.github.com/repos/Level-2/Dice/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/Level-2/Dice/issues/93/comments","events_url":"https://api.github.com/repos/Level-2/Dice/issues/93/events","html_url":"https://github.com/Level-2/Dice/issues/93","id":121861410,"number":93,"title":"Problem injecting with namespaces","user":{"login":"dmelo","id":89710,"avatar_url":"https://avatars.githubusercontent.com/u/89710?v=3","gravatar_id":"","url":"https://api.github.com/users/dmelo","html_url":"https://github.com/dmelo","followers_url":"https://api.github.com/users/dmelo/followers","following_url":"https://api.github.com/users/dmelo/following{/other_user}","gists_url":"https://api.github.com/users/dmelo/gists{/gist_id}","starred_url":"https://api.github.com/users/dmelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmelo/subscriptions","organizations_url":"https://api.github.com/users/dmelo/orgs","repos_url":"https://api.github.com/users/dmelo/repos","events_url":"https://api.github.com/users/dmelo/events{/privacy}","received_events_url":"https://api.github.com/users/dmelo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-12T15:24:14Z","updated_at":"2015-12-13T01:36:53Z","closed_at":null,"body":"I might be doing something wrong. Here is the code I'm using:\r\n```\r\n<?php\r\n\r\nrequire_once(__DIR__ . '/../vendor/autoload.php');\r\n\r\nuse \\Dice\\Dice;\r\n\r\n$dice = new Dice();\r\n\r\nclass A\r\n{\r\n    public $logger;\r\n    public function __construct(\\Psr\\Log\\LoggerInterface $logger)\r\n    {\r\n        $this->logger = $logger;\r\n    }\r\n}\r\n\r\n$rule = [\r\n    'substitution' => [\r\n        ['Psr\\\\Log\\\\LoggerInterface' => ['instance' => 'Monolog\\\\Logger']]\r\n    ],\r\n];\r\n\r\n$dice->addRule('A', $rule);\r\n$dice->addRule('Monolog\\\\Logger', ['shared' => true, 'constructParams' => ['bla']]);\r\n$a = $dice->create('A');\r\n```\r\n\r\nI'm getting the following error:\r\n\r\n    Fatal error: Cannot instantiate interface Psr\\Log\\LoggerInterface in /home/dmelo/proj2/ghmd/vendor/level-2/dice/Dice.php on line 70\r\n\r\nDoes someone knows what I'm doing wrong?"},"comment":{"url":"https://api.github.com/repos/Level-2/Dice/issues/comments/164209245","html_url":"https://github.com/Level-2/Dice/issues/93#issuecomment-164209245","issue_url":"https://api.github.com/repos/Level-2/Dice/issues/93","id":164209245,"user":{"login":"dmelo","id":89710,"avatar_url":"https://avatars.githubusercontent.com/u/89710?v=3","gravatar_id":"","url":"https://api.github.com/users/dmelo","html_url":"https://github.com/dmelo","followers_url":"https://api.github.com/users/dmelo/followers","following_url":"https://api.github.com/users/dmelo/following{/other_user}","gists_url":"https://api.github.com/users/dmelo/gists{/gist_id}","starred_url":"https://api.github.com/users/dmelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmelo/subscriptions","organizations_url":"https://api.github.com/users/dmelo/orgs","repos_url":"https://api.github.com/users/dmelo/repos","events_url":"https://api.github.com/users/dmelo/events{/privacy}","received_events_url":"https://api.github.com/users/dmelo/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T01:36:53Z","updated_at":"2015-12-13T01:36:53Z","body":"Thank you. I fixed the typo but I still have the same error. I imagine there might be something wrong with the rule. As if Dice still don't know what to do with `LoggerInterface`. But I wasn't able to figure out what."}}