Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Weaver weaverryan

View GitHub Profile
@kbond
kbond / AppKernel.php
Last active Mar 6, 2020
JWT Authentication With Symfony Guard. POST username/password to /login to receive token, /api* requests require a valid token
View AppKernel.php
<?php
// app/AppKernel.php
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;
class AppKernel extends Kernel
{
public function registerBundles()
{
You can’t perform that action at this time.