Ich möchte Social Connect-Schaltflächen in meinem Sylius-Shop hinzufügen, aber ich kann das nicht schaffen. Ich installierte HWIOAuthBundle über Musik:Konfigurieren Sie den OAuth2-Zugriff für Shop-Benutzer
$ composer require hwi/oauth-bundle
Dann nach HWIOAuthBundle documentation, hier sind meine Config-Dateien:
app/config/routing.yml
hwi_oauth_redirect:
resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml"
prefix: /connect
hwi_oauth_connect:
resource: "@HWIOAuthBundle/Resources/config/routing/connect.xml"
prefix: /connect
hwi_oauth_login:
resource: "@HWIOAuthBundle/Resources/config/routing/login.xml"
prefix: /login
facebook_login:
path: /login/check-facebook
app/config /config.yml
hwi_oauth:
firewall_names: [secured_area]
resource_owners:
any_name:
type: facebook
client_id: <client_id>
client_secret: <client_secret>
options:
display: popup #dialog is optimized for popup window
auth_type: rerequest # Re-asking for Declined Permissions
app/config/security.yml
firewalls:
secured_area:
anonymous: ~
oauth:
resource_owners:
facebook: "/login/check-facebook"
login_path: /login
use_forward: false
failure_path: /login
oauth_user_provider:
service: sylius.oauth.user_provider
Wenn ich den Server zu starten, bekomme ich diesen Fehler:
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
The service "sylius.oauth.user_provider" has a dependency on a non-existent service "sylius.factory.admin_user_oauth".
Haben Sie eine Ahnung, wie man es beheben? Die Dokumentation von Sylius ist ziemlich kurz und selbst bei der Suche in Commit-Kommentaren kann ich keine Ahnung haben.
Danke für Ihre Hilfe!
Hat jemand eine einfache Anleitung hat, wie HWIOAuthBundle in Sylius zu integrieren? – Gontran