Skip to content

Instantly share code, notes, and snippets.

View yemiwebby's full-sized avatar
🏠
Working from home

Oluyemi yemiwebby

🏠
Working from home
View GitHub Profile
@yemiwebby
yemiwebby / 1-Explanations.md
Created October 12, 2018 02:46 — forked from danvbe/1-Explanations.md
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.
@yemiwebby
yemiwebby / docker-help.md
Created September 3, 2018 06:51 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

{% extends "base.html.twig" %}
{% block title %} Realcode Blog {% endblock %}
{% block body %}
{% include 'include/slider.html.twig' with
{
title: 'Welcome to Realcode Media Technology Blog',
category: 'Symfony',
@yemiwebby
yemiwebby / README-Template.md
Created April 24, 2018 17:22 — forked from josemcunha/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here. Don't forget to link back to the tutorial.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

<?php
namespace App\Controller;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
/**
* @Route("/", name="default")
*/
public function index()
<?php
namespace App\Controller;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
/**
* @Route("/", name="default")
*/
public function index()
body {
font-family: Nunito,Helvetica Neue,Helvetica,Arial,sans-serif
}
.grid {
position: relative;
}
.item {
display: block;
@yemiwebby
yemiwebby / README.md
Created December 29, 2017 07:38 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet