Skip to content

Instantly share code, notes, and snippets.

Teoh Han Hui teohhanhui

Block or report user

Report or block teohhanhui

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@teohhanhui
teohhanhui / OmnipayStripeGatewayConfigurationType.php
Last active Jun 26, 2019
Using Omnipay with Sylius (example using Stripe)
View OmnipayStripeGatewayConfigurationType.php
<?php
declare(strict_types=1);
namespace AppBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
@teohhanhui
teohhanhui / FilterManager.php
Created Apr 11, 2018
Fix SVG in LiipImagineBundle (use together with https://gist.github.com/teohhanhui/90bbc4a61888ad2e92a160d8459db300 to fix MIME type in Symfony)
View FilterManager.php
<?php
declare(strict_types=1);
namespace AppBundle\Imagine\Filter;
use Liip\ImagineBundle\Binary\BinaryInterface;
use Liip\ImagineBundle\Imagine\Filter\FilterManager as BaseFilterManager;
use Liip\ImagineBundle\Model\Binary;
@teohhanhui
teohhanhui / AppKernel.php
Created Apr 11, 2018
Fix SVG mime type in Symfony
View AppKernel.php
<?php
declare(strict_types=1);
use AppBundle\HttpFoundation\File\MimeType\ErrataMimeTypeGuesser;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpFoundation\File\MimeType\FileBinaryMimeTypeGuesser;
use Symfony\Component\HttpFoundation\File\MimeType\FileinfoMimeTypeGuesser;
use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser;
use Symfony\Component\HttpKernel\Kernel;
View keybase.md

Keybase proof

I hereby claim:

  • I am teohhanhui on github.
  • I am teohhanhui (https://keybase.io/teohhanhui) on keybase.
  • I have a public key whose fingerprint is 400E 34DB 4EF8 84F6 DED1 5455 7297 83C9 6A30 C9B8

To claim this, I am signing this object:

You can’t perform that action at this time.