{"action":"opened","issue":{"url":"https://api.github.com/repos/zendframework/zend-expressive/issues/377","repository_url":"https://api.github.com/repos/zendframework/zend-expressive","labels_url":"https://api.github.com/repos/zendframework/zend-expressive/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zend-expressive/issues/377/comments","events_url":"https://api.github.com/repos/zendframework/zend-expressive/issues/377/events","html_url":"https://github.com/zendframework/zend-expressive/issues/377","id":177227640,"number":377,"title":"new parameter in AppFactory class","user":{"login":"raphaelcsilva","id":10833981,"avatar_url":"https://avatars.githubusercontent.com/u/10833981?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelcsilva","html_url":"https://github.com/raphaelcsilva","followers_url":"https://api.github.com/users/raphaelcsilva/followers","following_url":"https://api.github.com/users/raphaelcsilva/following{/other_user}","gists_url":"https://api.github.com/users/raphaelcsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelcsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelcsilva/subscriptions","organizations_url":"https://api.github.com/users/raphaelcsilva/orgs","repos_url":"https://api.github.com/users/raphaelcsilva/repos","events_url":"https://api.github.com/users/raphaelcsilva/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelcsilva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-15T16:43:51Z","updated_at":"2016-09-15T16:43:51Z","closed_at":null,"body":"The goal is add parameter for handler in factory, it adds more flexibility to customize application and still use factory.\r\n\r\n```php\r\npublic static function create(\r\n    ContainerInterface $container = null,\r\n    Router\\RouterInterface $router = null,\r\n    callable $finalHandler = null\r\n) {\r\n    $container = $container ?: new ServiceManager();\r\n    $router    = $router    ?: new Router\\FastRouteRouter();\r\n    $emitter   = new Emitter\\EmitterStack();\r\n    $emitter->push(new SapiEmitter());\r\n\r\n    return new Application($router, $container, $finalHandler, $emitter);\r\n}\r\n```\r\n This change won't break the compatibility for users that not defined the new parameter."}}
{"actor":{"display_login":"raphaelcsilva"}}