{"action":"closed","issue":{"url":"https://api.github.com/repos/container-interop/definition-interop/issues/10","labels_url":"https://api.github.com/repos/container-interop/definition-interop/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/container-interop/definition-interop/issues/10/comments","events_url":"https://api.github.com/repos/container-interop/definition-interop/issues/10/events","html_url":"https://github.com/container-interop/definition-interop/issues/10","id":119172681,"number":10,"title":"Consider adding a getExtraOptions() method","user":{"login":"moufmouf","id":1290952,"avatar_url":"https://avatars.githubusercontent.com/u/1290952?v=3","gravatar_id":"","url":"https://api.github.com/users/moufmouf","html_url":"https://github.com/moufmouf","followers_url":"https://api.github.com/users/moufmouf/followers","following_url":"https://api.github.com/users/moufmouf/following{/other_user}","gists_url":"https://api.github.com/users/moufmouf/gists{/gist_id}","starred_url":"https://api.github.com/users/moufmouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moufmouf/subscriptions","organizations_url":"https://api.github.com/users/moufmouf/orgs","repos_url":"https://api.github.com/users/moufmouf/repos","events_url":"https://api.github.com/users/moufmouf/events{/privacy}","received_events_url":"https://api.github.com/users/moufmouf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-27T10:33:02Z","updated_at":"2015-11-27T13:02:30Z","closed_at":"2015-11-27T13:02:30Z","body":"We are only standardizing the most common options out there (entry building via the new keyword and via a factory).\r\nBut there are really a huge number of different options in containers out there.\r\nFor instance: lazy loading via proxying, inlining of instances, etc...\r\n\r\nOf course we cannot build an interface that would contain all possible features (in particular because some of those feature might not yet exist).\r\n\r\nSo I was wondering if we should not consider an extra options array (a bit like in Composer's extra section), where one could store container specific settings.\r\n\r\nFor instance:\r\n\r\n```php\r\n$options = $definition->getExtraOptions();\r\nif (isset($options['lazy']) && $options['lazy']) {\r\n   // Add proxying if the container supports it.\r\n}\r\n```\r\n\r\nI'm not completely sure of the idea though, I'm just opening the question it to gather some feedback.\r\n"}}