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 / OmnipayStripeGatewayConfigurationType.php
Last active Jun 26, 2019
Using Omnipay with Sylius (example using Stripe)
View OmnipayStripeGatewayConfigurationType.php
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 / FilterManager.php
Created Apr 11, 2018
Fix SVG in LiipImagineBundle (use together with to fix MIME type in Symfony)
View FilterManager.php
namespace AppBundle\Imagine\Filter;
use Liip\ImagineBundle\Binary\BinaryInterface;
use Liip\ImagineBundle\Imagine\Filter\FilterManager as BaseFilterManager;
use Liip\ImagineBundle\Model\Binary;
teohhanhui / AppKernel.php
Created Apr 11, 2018
Fix SVG mime type in Symfony
View AppKernel.php
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;

Keybase proof

I hereby claim:

  • I am teohhanhui on github.
  • I am 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.