{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/container/issues/33","labels_url":"https://api.github.com/repos/thephpleague/container/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/container/issues/33/comments","events_url":"https://api.github.com/repos/thephpleague/container/issues/33/events","html_url":"https://github.com/thephpleague/container/pull/33","id":60117140,"number":33,"title":"invokable with custom arguments","user":{"login":"hannesvdvreken","id":1410358,"avatar_url":"https://avatars.githubusercontent.com/u/1410358?v=3","gravatar_id":"","url":"https://api.github.com/users/hannesvdvreken","html_url":"https://github.com/hannesvdvreken","followers_url":"https://api.github.com/users/hannesvdvreken/followers","following_url":"https://api.github.com/users/hannesvdvreken/following{/other_user}","gists_url":"https://api.github.com/users/hannesvdvreken/gists{/gist_id}","starred_url":"https://api.github.com/users/hannesvdvreken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannesvdvreken/subscriptions","organizations_url":"https://api.github.com/users/hannesvdvreken/orgs","repos_url":"https://api.github.com/users/hannesvdvreken/repos","events_url":"https://api.github.com/users/hannesvdvreken/events{/privacy}","received_events_url":"https://api.github.com/users/hannesvdvreken/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-06T15:37:24Z","updated_at":"2015-03-07T15:08:12Z","closed_at":"2015-03-07T15:02:53Z","pull_request":{"url":"https://api.github.com/repos/thephpleague/container/pulls/33","html_url":"https://github.com/thephpleague/container/pull/33","diff_url":"https://github.com/thephpleague/container/pull/33.diff","patch_url":"https://github.com/thephpleague/container/pull/33.patch"},"body":"I assumed nobody used this:\r\n\r\n```php\r\n$container->invokable('closure', function ($arg1, $arg2) {\r\n   ...\r\n});\r\n\r\n$container->call('closure', ['value1', 'value2']);\r\n```\r\n\r\nBut this is backwards compatible:\r\n\r\n```php\r\n$container->add('item', function ($arg) {\r\n   return $arg;\r\n})->withArguments('default_value');\r\n\r\necho $container->get('item');\r\n// 'default_value'\r\n\r\necho $container->get('item', ['override']);\r\n// 'override'\r\n```\r\n\r\nFixes #32."},"comment":{"url":"https://api.github.com/repos/thephpleague/container/issues/comments/77692951","html_url":"https://github.com/thephpleague/container/pull/33#issuecomment-77692951","issue_url":"https://api.github.com/repos/thephpleague/container/issues/33","id":77692951,"user":{"login":"sagikazarmark","id":1226384,"avatar_url":"https://avatars.githubusercontent.com/u/1226384?v=3","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T15:08:12Z","updated_at":"2015-03-07T15:08:12Z","body":"Yeah, but the break is still in the development branch. It should either be resolved or reverted those commits as well, because the features/fixes added since cannot be used."}}