Skip to content

Instantly share code, notes, and snippets.

View jiglesiasabio's full-sized avatar
🕶️
Testing the testing lib

Javier Iglesia Sabio jiglesiasabio

🕶️
Testing the testing lib
View GitHub Profile
@jiglesiasabio
jiglesiasabio / Symfony2_commands.md
Last active December 20, 2015 02:29
Symfony2 terminal cheat sheet work in process!

Symfony2 terminal cheatSheet

##Symfony

Create bundle

php app/console generate:bundle

List all routes

php app/console router:debug

@danvbe
danvbe / 1-Explanations.md
Last active November 14, 2024 02:13
A way to integrate FosUserBundle and HWIOAuthBundle

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.

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables