{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/2483","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/2483/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/2483/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/2483/events","html_url":"https://github.com/hapijs/hapi/issues/2483","id":64979297,"number":2483,"title":"Feature: be able to pass select options to server.register when argument is array of objects","user":{"login":"danielb2","id":26678,"avatar_url":"https://avatars.githubusercontent.com/u/26678?v=3","gravatar_id":"","url":"https://api.github.com/users/danielb2","html_url":"https://github.com/danielb2","followers_url":"https://api.github.com/users/danielb2/followers","following_url":"https://api.github.com/users/danielb2/following{/other_user}","gists_url":"https://api.github.com/users/danielb2/gists{/gist_id}","starred_url":"https://api.github.com/users/danielb2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielb2/subscriptions","organizations_url":"https://api.github.com/users/danielb2/orgs","repos_url":"https://api.github.com/users/danielb2/repos","events_url":"https://api.github.com/users/danielb2/events{/privacy}","received_events_url":"https://api.github.com/users/danielb2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-28T19:29:36Z","updated_at":"2015-03-28T21:03:47Z","closed_at":null,"body":"What's being done below isn't currently possible.  Seems currently you have to do another register as part of the callback.   Is there any other way?\r\n\r\nRegardless, this would be nice if this were possible.\r\n\r\n``` javascript\r\n  server.register([\r\n          { register: Plugin1, options: { select: 'http' }},\r\n          { register: Plugin2, options: { select: 'api' }},\r\n          Plugin3\r\n      ],\r\n      function (err) {\r\n          if (err) {\r\n              console.log('server.register err:', err);\r\n              return callback(err);\r\n          }\r\n\r\n          server.start(function() {\r\n              return callback(null, server);\r\n          });\r\n      }\r\n  );\r\n```"},"comment":{"url":"https://api.github.com/repos/hapijs/hapi/issues/comments/87302698","html_url":"https://github.com/hapijs/hapi/issues/2483#issuecomment-87302698","issue_url":"https://api.github.com/repos/hapijs/hapi/issues/2483","id":87302698,"user":{"login":"danielb2","id":26678,"avatar_url":"https://avatars.githubusercontent.com/u/26678?v=3","gravatar_id":"","url":"https://api.github.com/users/danielb2","html_url":"https://github.com/danielb2","followers_url":"https://api.github.com/users/danielb2/followers","following_url":"https://api.github.com/users/danielb2/following{/other_user}","gists_url":"https://api.github.com/users/danielb2/gists{/gist_id}","starred_url":"https://api.github.com/users/danielb2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielb2/subscriptions","organizations_url":"https://api.github.com/users/danielb2/orgs","repos_url":"https://api.github.com/users/danielb2/repos","events_url":"https://api.github.com/users/danielb2/events{/privacy}","received_events_url":"https://api.github.com/users/danielb2/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T21:03:47Z","updated_at":"2015-03-28T21:03:47Z","body":"Actually, for glue, how do you load a plugin that's defined locally? The manifest option seems to require a name of the package. So if I have it defined in my lib as something or other, then it's not finding it."}}