{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/23834","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/23834/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/23834/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/23834/events","html_url":"https://github.com/symfony/symfony/pull/23834","id":248802789,"number":23834,"title":"[DI] Add \"PHP fluent format\" for configuring the container","user":{"login":"nicolas-grekas","id":243674,"avatar_url":"https://avatars3.githubusercontent.com/u/243674?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolas-grekas","html_url":"https://github.com/nicolas-grekas","followers_url":"https://api.github.com/users/nicolas-grekas/followers","following_url":"https://api.github.com/users/nicolas-grekas/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-grekas/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-grekas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-grekas/subscriptions","organizations_url":"https://api.github.com/users/nicolas-grekas/orgs","repos_url":"https://api.github.com/users/nicolas-grekas/repos","events_url":"https://api.github.com/users/nicolas-grekas/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-grekas/received_events","type":"User","site_admin":false},"labels":[{"id":99863,"url":"https://api.github.com/repos/symfony/symfony/labels/DependencyInjection","name":"DependencyInjection","color":"DDDDDD","default":false},{"id":100378,"url":"https://api.github.com/repos/symfony/symfony/labels/Feature","name":"Feature","color":"02e10c","default":false},{"id":237003792,"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/symfony/symfony/milestones/10","html_url":"https://github.com/symfony/symfony/milestone/10","labels_url":"https://api.github.com/repos/symfony/symfony/milestones/10/labels","id":2117464,"number":10,"title":"3.4","description":"https://symfony.com/roadmap?version=3.4#checker","creator":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars3.githubusercontent.com/u/73419?v=4","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"open_issues":140,"closed_issues":262,"state":"open","created_at":"2016-11-06T20:24:23Z","updated_at":"2017-09-07T15:02:28Z","due_on":"2017-11-30T08:00:00Z","closed_at":null},"comments":63,"created_at":"2017-08-08T18:20:33Z","updated_at":"2017-09-07T19:58:03Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/23834","html_url":"https://github.com/symfony/symfony/pull/23834","diff_url":"https://github.com/symfony/symfony/pull/23834.diff","patch_url":"https://github.com/symfony/symfony/pull/23834.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Branch?       | 3.4\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | #22407\r\n| License       | MIT\r\n| Doc PR        | -\r\n\r\nThis PR allows one to write DI configuration using just PHP, with full IDE auto-completion.\r\nExample:\r\n```php\r\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\r\nuse Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\Prototype\\Foo;\r\n\r\nreturn function (ContainerConfigurator $c) {\r\n\r\n    $c->import('basic.php');\r\n\r\n    $s = $c->services()->defaults()\r\n        ->public()\r\n        ->private()\r\n        ->autoconfigure()\r\n        ->autowire()\r\n        ->tag('t', array('a' => 'b'))\r\n        ->bind(Foo::class, $c->ref('bar'))\r\n        ->private();\r\n\r\n    $s->set(Foo::class)->argument($c->ref('bar'))->public();\r\n    $s->set('bar', Foo::class)->call('setFoo')->autoconfigure(false);\r\n\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/327911323","html_url":"https://github.com/symfony/symfony/pull/23834#issuecomment-327911323","issue_url":"https://api.github.com/repos/symfony/symfony/issues/23834","id":327911323,"user":{"login":"ro0NL","id":1047696,"avatar_url":"https://avatars0.githubusercontent.com/u/1047696?v=4","gravatar_id":"","url":"https://api.github.com/users/ro0NL","html_url":"https://github.com/ro0NL","followers_url":"https://api.github.com/users/ro0NL/followers","following_url":"https://api.github.com/users/ro0NL/following{/other_user}","gists_url":"https://api.github.com/users/ro0NL/gists{/gist_id}","starred_url":"https://api.github.com/users/ro0NL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ro0NL/subscriptions","organizations_url":"https://api.github.com/users/ro0NL/orgs","repos_url":"https://api.github.com/users/ro0NL/repos","events_url":"https://api.github.com/users/ro0NL/events{/privacy}","received_events_url":"https://api.github.com/users/ro0NL/received_events","type":"User","site_admin":false},"created_at":"2017-09-07T19:58:03Z","updated_at":"2017-09-07T19:58:03Z","author_association":"CONTRIBUTOR","body":"`with($arg, $argN)` is nice, but we cant support both in a single API. I tend to prefer `with([$arg, $argN])` which is 2 chars more.. but also allows for `with($args)`."}}
{"actor":{"display_login":"ro0NL"}}