Skip to content

Instantly share code, notes, and snippets.

View Gompali's full-sized avatar

Gompali Gompali

  • Near my computer
View GitHub Profile
security:
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
providers:
doctrine:
entity:
class: App\Core\User\Domain\BaseUser
property: username
encoders:
App\Core\User\Domain\BaseUser:
algorithm: auto
security:
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
providers:
doctrine:
entity:
class: App\Core\User\Domain\BaseUser
property: username
encoders:
App\Core\User\Domain\BaseUser:
algorithm: auto
<?php
declare(strict_types=1);
namespace App\Controller\Back\Oauth;
use App\Core\Authentication\Domain\Oauth2;
use App\Core\Authentication\Domain\Repository\Oauth2RepositoryInterface;
<?php
declare(strict_types=1);
namespace App\Entity\EventListener;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpKernel\Event\ResponseEvent;
class ResponseListener
<?php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Debug\Debug;
// If you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
//umask(0000);
// This check prevents access to debug front controllers that are deployed by accident to production servers.