Reputation: 12433
I have this yml code
my.oauth_aware.user_provider.service:
class: HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider
arguments: [@fos_user.user_manager,{facebook: facebook_id, google: google_id}]
However I have to translate this into XML, so I made this code.
I have one question.
<service id="my.oauth_aware.user_provider.service" class="HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider">
<argument type="service" id="fos_user.user_manager">
{facebook: facebook_id, google: google_id} #How do I write array in XML?
</service>
How do I write an array in XML??
Upvotes: 3
Views: 190
Reputation: 1311
Your second argument would be something like:
<argument type="collection">
<argument key="facebook">facebook_id</argument>
<argument key="google">google_id</argument>
</argument>
Upvotes: 4