Skip to content

Instantly share code, notes, and snippets.

View vmarquezh's full-sized avatar

Víctor M Márquez H vmarquezh

View GitHub Profile
@vmarquezh
vmarquezh / .multitailrc
Created March 7, 2020 02:54
MultiTail config for Symfony/Monolog logs with extra tokens.
#---------
# sfExtra
scheme:sfExtra:var/log/.*\.log
colorscheme:sf4extra
## Date
cs_re_s:green:(\[[0-9: -]+\]).*
## Extra Info
cs_re_s:blue:(\[([a-z0-9]{8}(-[a-z0-9]{8}|.*)-[0-9]{8}|.)\]).*
## Channel
cs_re_s:cyan:\] (php\.).*
@vmarquezh
vmarquezh / 1-Explanations.md
Last active August 29, 2015 14:06 — forked from danvbe/1-Explanations.md
Symfony2: Integration HWIOAuthBundle and FOSUserBundle

I have managed to install this… and make it work. I implemented it for Facebook and Google, but you can extend it. My solution it is mostly as described in #116, with a bit of more code presented. The key aspects that lack in the #116 presentation (IMO) are:

  • the registration as service of your custom FOSUBUserProvider (with the necessary parameters)
  • set the service for oauth_user_provider in the security.yml with your custom created service

Here are the steps:

  1. Routing. In routing.yml I have added all the routes for both bundles.
  2. Configuration. I have set the config.yml mostly as it is presented in the HWIOAuthBundle.
  3. Security. I have set the security.yml mostly as it is presented in the HWIOAuthBundle (though my routes are using /login pattern, not /connect). Also, the oauth_user_provider is set for my custom service.