This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
use App\Entity\User; | |
use Doctrine\ORM\EntityManagerInterface; | |
use PhpOffice\PhpSpreadsheet\Spreadsheet; | |
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |
use PhpOffice\PhpSpreadsheet\Writer\Xlsx; | |
use Symfony\Component\Routing\Annotation\Route; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'base.html.twig' %} | |
{% block title %}Hello HomeController!{% endblock %} | |
{% block body %} | |
<style> | |
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; } | |
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; } | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Entity; | |
use App\Repository\UserRepository; | |
use Doctrine\ORM\Mapping as ORM; | |
use Symfony\Component\Security\Core\User\UserInterface; | |
/** | |
* @ORM\Entity(repositoryClass=UserRepository::class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security: | |
encoders: | |
App\Entity\User: | |
algorithm: auto | |
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers | |
providers: | |
# used to reload user from session & other features (e.g. switch_user) | |
app_user_provider: | |
entity: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api_platform: | |
.... | |
swagger: | |
versions: [3] | |
api_keys: | |
apiKey: | |
name: Authorization | |
type: header | |
.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/Swagger/SwaggerDecorator.php | |
declare(strict_types=1); | |
namespace App\Swagger; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Serializer\Normalizer\NormalizerInterface; | |
final class SwaggerDecorator implements NormalizerInterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
# ... | |
App\Swagger\SwaggerDecorator: | |
decorates: 'api_platform.swagger.normalizer.documentation' | |
arguments: ['@App\Swagger\SwaggerDecorator.inner'] | |
autoconfigure: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// config/routes/routes.yaml | |
api_authentication: | |
path: /authentication | |
gesdinet_jwt_refresh_token: | |
path: /token/refresh | |
controller: gesdinet.jwtrefreshtoken::refresh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security: | |
encoders: | |
App\Entity\User: | |
algorithm: argon2i | |
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers | |
providers: | |
# used to reload user from session & other features (e.g. switch_user) | |
app_user_provider: | |
entity: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gesdinet_jwt_refresh_token: | |
ttl: 2592000 | |
user_identity_field: email |
OlderNewer