Skip to content
Code for the workshop "Symfony security component in examples" at WebSummerCamp 2019
PHP HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
public
src
templates
tests
translations
.env
.env.test
.gitignore
README.md
composer.json
composer.lock
phpunit.xml.dist
symfony.lock

README.md

Symfony Security component in examples

Code for the workshop "Symfony security component in examples" at WebSummerCamp 2019

Requirements

PHP 7.1+, MySQL 5.7
Symfony local server

Installation

composer install
bin/console doctrine:migrations:migrate
bin/console doctrine:fixtures:load

Testing

cp .env.local .env.test.local
bin/phpunit

Code snippets

Guard AuthenticatorInterface: https://gist.github.com/romaricdrigon/5c6f438afb2715357464d06241addf03

Doctrine filter: https://gist.github.com/romaricdrigon/88cc8c9f5cb20e84c0ebc8c472bd5b7e

Code kata resources

UserChecker documentation

Event dispatching documentation

Validator usage

NotCompromisedValidator constraint documentation The validator code

You can’t perform that action at this time.