{"action":"created","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/3843","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/3843/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/3843/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/3843/events","html_url":"https://github.com/Sylius/Sylius/issues/3843","id":125922914,"number":3843,"title":"Is it possible define form type in resource, when it is a service?","user":{"login":"ufik","id":1945040,"avatar_url":"https://avatars.githubusercontent.com/u/1945040?v=3","gravatar_id":"","url":"https://api.github.com/users/ufik","html_url":"https://github.com/ufik","followers_url":"https://api.github.com/users/ufik/followers","following_url":"https://api.github.com/users/ufik/following{/other_user}","gists_url":"https://api.github.com/users/ufik/gists{/gist_id}","starred_url":"https://api.github.com/users/ufik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ufik/subscriptions","organizations_url":"https://api.github.com/users/ufik/orgs","repos_url":"https://api.github.com/users/ufik/repos","events_url":"https://api.github.com/users/ufik/events{/privacy}","received_events_url":"https://api.github.com/users/ufik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2016-01-11T11:25:22Z","updated_at":"2016-01-11T17:58:03Z","closed_at":"2016-01-11T11:31:19Z","body":"I have form type, which uses db, so I defined this form as a service and in my controller I am getting this form type via $container->get(). And now I would like to define this form type in resource\r\n\r\n```\r\nsylius_resource:\r\n    resources:\r\n            classes:\r\n                form:\r\n                    default: @service\r\n```\r\n\r\nBut it's expecting only string, is there any way to do this?"},"comment":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/comments/170634602","html_url":"https://github.com/Sylius/Sylius/issues/3843#issuecomment-170634602","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/3843","id":170634602,"user":{"login":"bendavies","id":625392,"avatar_url":"https://avatars.githubusercontent.com/u/625392?v=3","gravatar_id":"","url":"https://api.github.com/users/bendavies","html_url":"https://github.com/bendavies","followers_url":"https://api.github.com/users/bendavies/followers","following_url":"https://api.github.com/users/bendavies/following{/other_user}","gists_url":"https://api.github.com/users/bendavies/gists{/gist_id}","starred_url":"https://api.github.com/users/bendavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendavies/subscriptions","organizations_url":"https://api.github.com/users/bendavies/orgs","repos_url":"https://api.github.com/users/bendavies/repos","events_url":"https://api.github.com/users/bendavies/events{/privacy}","received_events_url":"https://api.github.com/users/bendavies/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T17:58:03Z","updated_at":"2016-01-11T17:58:03Z","body":"Thanks. I'll take a look later"}}