{"action":"opened","issue":{"url":"https://api.github.com/repos/zendframework/zend-servicemanager/issues/102","repository_url":"https://api.github.com/repos/zendframework/zend-servicemanager","labels_url":"https://api.github.com/repos/zendframework/zend-servicemanager/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zend-servicemanager/issues/102/comments","events_url":"https://api.github.com/repos/zendframework/zend-servicemanager/issues/102/events","html_url":"https://github.com/zendframework/zend-servicemanager/issues/102","id":139228455,"number":102,"title":"How to create ServiceManager object for both V2 and V3","user":{"login":"svycka","id":1270782,"avatar_url":"https://avatars.githubusercontent.com/u/1270782?v=3","gravatar_id":"","url":"https://api.github.com/users/svycka","html_url":"https://github.com/svycka","followers_url":"https://api.github.com/users/svycka/followers","following_url":"https://api.github.com/users/svycka/following{/other_user}","gists_url":"https://api.github.com/users/svycka/gists{/gist_id}","starred_url":"https://api.github.com/users/svycka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svycka/subscriptions","organizations_url":"https://api.github.com/users/svycka/orgs","repos_url":"https://api.github.com/users/svycka/repos","events_url":"https://api.github.com/users/svycka/events{/privacy}","received_events_url":"https://api.github.com/users/svycka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-08T09:49:18Z","updated_at":"2016-03-08T09:49:18Z","closed_at":null,"body":"I want to support both but the constructor signatures are different\r\n```php\r\nServiceManager::__construct(ConfigInterface $config = null);\r\nServiceManager::__construct(array $config = []);\r\n```\r\nand now I am creating ServiceManager:\r\n```php\r\n$config = [];\r\nnew ServiceManager(new Zend\\ServiceManager\\Config($config)); // does not work for V3\r\nnew ServiceManager($config); // does not work for V2\r\n```\r\nmaybe I am missing something?"}}