Skip to content

Instantly share code, notes, and snippets.

Avatar

Wouter de Jong wouterj

View GitHub Profile
View composer.json
{
"require": {
"symfony/error-handler": "^5.3"
}
}
@wouterj
wouterj / 1-tokenize output
Last active July 5, 2020 12:50
DOCtor tokenizer
View 1-tokenize output
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>``
View GuardBridgeAuthenticator.php
<?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.
*/
View RememberMeAuthenticator.php
<?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.
*/
View 1. Things have to finished.md
View security.yml
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
View README.md

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

View 1-the-unit.php
<?php
// ...
class MyUnit
{
private $authChecker;
public function __construct(AuthorizationCheckerInterface $authChecker)
{
View examples.md
View gist:cf14f45f8e55170c5fcc
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
pattern: ^/
provider: db_provider
anonymous: ~