{"action":"created","issue":{"url":"https://api.github.com/repos/neemzy/share-extension/issues/8","repository_url":"https://api.github.com/repos/neemzy/share-extension","labels_url":"https://api.github.com/repos/neemzy/share-extension/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/neemzy/share-extension/issues/8/comments","events_url":"https://api.github.com/repos/neemzy/share-extension/issues/8/events","html_url":"https://github.com/neemzy/share-extension/issues/8","id":156155926,"number":8,"title":"Symfony integration","user":{"login":"davidromani","id":698779,"avatar_url":"https://avatars1.githubusercontent.com/u/698779?v=4","gravatar_id":"","url":"https://api.github.com/users/davidromani","html_url":"https://github.com/davidromani","followers_url":"https://api.github.com/users/davidromani/followers","following_url":"https://api.github.com/users/davidromani/following{/other_user}","gists_url":"https://api.github.com/users/davidromani/gists{/gist_id}","starred_url":"https://api.github.com/users/davidromani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidromani/subscriptions","organizations_url":"https://api.github.com/users/davidromani/orgs","repos_url":"https://api.github.com/users/davidromani/repos","events_url":"https://api.github.com/users/davidromani/events{/privacy}","received_events_url":"https://api.github.com/users/davidromani/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-05-22T14:58:33Z","updated_at":"2018-03-05T23:40:54Z","closed_at":"2016-05-24T13:53:29Z","author_association":"NONE","body":"Hello.\n\nThere is some Symfony Bundle integration? Or could you provide some code example to do it?\n\nThx.\n"},"comment":{"url":"https://api.github.com/repos/neemzy/share-extension/issues/comments/370607485","html_url":"https://github.com/neemzy/share-extension/issues/8#issuecomment-370607485","issue_url":"https://api.github.com/repos/neemzy/share-extension/issues/8","id":370607485,"user":{"login":"bryce-gilhome-cp","id":30160838,"avatar_url":"https://avatars0.githubusercontent.com/u/30160838?v=4","gravatar_id":"","url":"https://api.github.com/users/bryce-gilhome-cp","html_url":"https://github.com/bryce-gilhome-cp","followers_url":"https://api.github.com/users/bryce-gilhome-cp/followers","following_url":"https://api.github.com/users/bryce-gilhome-cp/following{/other_user}","gists_url":"https://api.github.com/users/bryce-gilhome-cp/gists{/gist_id}","starred_url":"https://api.github.com/users/bryce-gilhome-cp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryce-gilhome-cp/subscriptions","organizations_url":"https://api.github.com/users/bryce-gilhome-cp/orgs","repos_url":"https://api.github.com/users/bryce-gilhome-cp/repos","events_url":"https://api.github.com/users/bryce-gilhome-cp/events{/privacy}","received_events_url":"https://api.github.com/users/bryce-gilhome-cp/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T23:40:54Z","updated_at":"2018-03-05T23:40:54Z","author_association":"NONE","body":"For anyone else needing this (and also to verify this is correct practice :) ): you need a class that returns a SocialShare instance via its constructor.\r\n\r\n```\r\nclass myInstance extends SocialShare {\r\n  public function __construct() {\r\n    return ShareExtension::getInstance();\r\n  }\r\n}\r\n\r\n```\r\nYou then need to register that as a Symfony service, and then register the Twig extension using the SocialShare instance service as an argument:\r\n\r\n```\r\n  twig.extension.neemzy.share.myInstance:\r\n    class: myNamespace\\myInstance\r\n\r\n  twig.extension.neemzy.share:\r\n    class: Neemzy\\Twig\\Extension\\Share\\ShareExtension\r\n    tags:\r\n      - { name: twig.extension }\r\n    arguments: ['@twig.extension.neemzy.share.myInstance']\r\n```"}}
{"actor":{"display_login":"bryce-gilhome-cp"}}