{"action":"created","issue":{"url":"https://api.github.com/repos/PHP-DI/Silex-Bridge/issues/3","labels_url":"https://api.github.com/repos/PHP-DI/Silex-Bridge/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/PHP-DI/Silex-Bridge/issues/3/comments","events_url":"https://api.github.com/repos/PHP-DI/Silex-Bridge/issues/3/events","html_url":"https://github.com/PHP-DI/Silex-Bridge/issues/3","id":104032870,"number":3,"title":"Problem when register new service","user":{"login":"pupi","id":607924,"avatar_url":"https://avatars.githubusercontent.com/u/607924?v=3","gravatar_id":"","url":"https://api.github.com/users/pupi","html_url":"https://github.com/pupi","followers_url":"https://api.github.com/users/pupi/followers","following_url":"https://api.github.com/users/pupi/following{/other_user}","gists_url":"https://api.github.com/users/pupi/gists{/gist_id}","starred_url":"https://api.github.com/users/pupi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pupi/subscriptions","organizations_url":"https://api.github.com/users/pupi/orgs","repos_url":"https://api.github.com/users/pupi/repos","events_url":"https://api.github.com/users/pupi/events{/privacy}","received_events_url":"https://api.github.com/users/pupi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-31T11:12:14Z","updated_at":"2015-09-02T05:30:59Z","closed_at":"2015-09-01T09:45:07Z","body":"I try to register services using DI-Bridge for Silex\r\nit work find for some services like Twig or Doctrine\r\nbut it has error when I register SwiftmailerServiceProvider\r\n\r\n```\r\nFatal error: Uncaught exception 'InvalidArgumentException' with message 'Service definition is not a Closure or invokable object.' in /vendor/pimple/pimple/lib/Pimple.php:119 \r\nStack trace: \r\n#0 /vagrant/vendor/silex/silex/src/Silex/Application.php(317): Pimple::share(NULL) \r\n#1 /vendor/silex/silex/src/Silex/Application.php(388): Silex\\Application->on('kernel.terminat...', Object(Closure), 0) \r\n#2 /vendor/silex/silex/src/Silex/Provider/SwiftmailerServiceProvider.php(97): Silex\\Application->finish(Object(Closure)) \r\n#3 /vendor/silex/silex/src/Silex/Application.php(192): Silex\\Provider\\SwiftmailerServiceProvider->boot(Object(DI\\Bridge\\Silex\\Application)) \r\n#4 /vendor/silex/silex/src/Silex/Application.php(577): Silex\\Application->boot() \r\n#5 /vendor/silex/silex/src/Silex/Application.php(563): Silex\\Application->handle(Object(Symfony\\Component\\HttpFoundation\\Request)) \r\n#6 /public/me in /vendor/pimple/pimple/lib/Pimple.php on line 119\r\n```\r\n\r\nanyone has any idea ?"},"comment":{"url":"https://api.github.com/repos/PHP-DI/Silex-Bridge/issues/comments/136940739","html_url":"https://github.com/PHP-DI/Silex-Bridge/issues/3#issuecomment-136940739","issue_url":"https://api.github.com/repos/PHP-DI/Silex-Bridge/issues/3","id":136940739,"user":{"login":"pupi","id":607924,"avatar_url":"https://avatars.githubusercontent.com/u/607924?v=3","gravatar_id":"","url":"https://api.github.com/users/pupi","html_url":"https://github.com/pupi","followers_url":"https://api.github.com/users/pupi/followers","following_url":"https://api.github.com/users/pupi/following{/other_user}","gists_url":"https://api.github.com/users/pupi/gists{/gist_id}","starred_url":"https://api.github.com/users/pupi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pupi/subscriptions","organizations_url":"https://api.github.com/users/pupi/orgs","repos_url":"https://api.github.com/users/pupi/repos","events_url":"https://api.github.com/users/pupi/events{/privacy}","received_events_url":"https://api.github.com/users/pupi/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T05:30:59Z","updated_at":"2015-09-02T05:30:59Z","body":"yeah, it works perfectly now, thank you so much"}}