Skip to content

Instantly share code, notes, and snippets.

View wouterj's full-sized avatar

Wouter de Jong wouterj

View GitHub Profile
<?php
namespace App\Security;
use App\Security\User;
use Lcobucci\JWT\Encoding\CannotDecodeContent;
use Lcobucci\JWT\Token\InvalidTokenStructure;
use Lcobucci\JWT\Token\Parser;
use Lcobucci\JWT\Token\UnsupportedHeaderFound;
use Lcobucci\JWT\Validation\Constraint\RelatedTo;
{
"require": {
"symfony/error-handler": "^5.3"
}
}
@wouterj
wouterj / 1-tokenize output
Last active July 5, 2020 12:50
DOCtor tokenizer
TYPE_TITLE Bootstrap 4 Form Theme
======================
TYPE_TEXT Symfony provides several ways of integrating Bootstrap into your application. The
most straightforward way is to add the required
TYPE_LITERAL ``<link>``
TYPE_TEXT and
TYPE_LITERAL ``<script>``
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
security:
encoders:
AppBundle\Entity\User:
algorithm: pbkdf2
hash_algorithm: sha512
encode_as_base64: true
iterations: 1000
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
our_db_provider:
@wouterj
wouterj / README.md
Last active May 21, 2016 12:59 — forked from weaverryan/README.md
Welcome to Symfony Documentation Hack Day May 21st, 2016

It's a Doc Hack Day!

Welcome! No matter what you're level of Symfony or how you feel about your English (I'm sure it's just fine), we have plenty of things we need help with! This document will guide you through everything:

Where are we meeting?

We're meeting on Freenode in the #symfony-docs

<?php
// ...
class MyUnit
{
private $authChecker;
public function __construct(AuthorizationCheckerInterface $authChecker)
{