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
ifndef APPLICATION_CONFIG | |
# Determine which .env file to use | |
ifneq ("$(wildcard .env.local)","") | |
include .env.local | |
else | |
include .env | |
endif | |
endif | |
# Define used JWT keys paths and passphrase |
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
https://github.com/tarlepp/symfony-flex-backend/blob/master/config/services.yaml#L28-L30 | |
https://github.com/tarlepp/symfony-flex-backend/blob/master/config/services.yaml#L59-L60 | |
https://github.com/tarlepp/symfony-flex-backend/blob/master/src/Rest/ControllerCollection.php | |
https://github.com/tarlepp/symfony-flex-backend/blob/master/src/Collection/CollectionTrait.php |
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
public function getSerializeContext(Request $request, ?RestResourceInterface $restResource = null): array | |
{ | |
/** | |
* Specify used populate settings | |
* | |
* @var array<int, string> | |
*/ | |
$populate = (array)$request->get('populate', []); | |
$groups = array_merge(['default', $populate]); |
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 | |
declare(strict_types = 1); | |
namespace App\ArgumentResolver; | |
use App\DTO\RestDtoInterface; | |
use App\Rest\Controller; | |
use App\Rest\ControllerCollection; | |
use AutoMapperPlus\AutoMapperInterface; | |
use AutoMapperPlus\Exception\UnregisteredMappingException; |
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 | |
declare(strict_types = 1); | |
/** | |
* /src/EventSubscriber/ExceptionSubscriber.php | |
* | |
* @author TLe, Tarmo LeppΓ€nen <[email protected]> | |
*/ | |
namespace App\EventSubscriber; |
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 | |
declare(strict_types = 1); | |
/** | |
* /src/EventSubscriber/BodySubscriber.php | |
* | |
* @author TLe, Tarmo LeppΓ€nen <[email protected]> | |
*/ | |
namespace App\EventSubscriber; |
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 | |
declare(strict_types = 1); | |
/** | |
* /src/EventSubscriber/ExceptionSubscriber.php | |
* | |
* @author TLe, Tarmo LeppΓ€nen <[email protected]> | |
*/ | |
namespace App\EventSubscriber; |
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 | |
declare(strict_types = 1); | |
/** | |
* /src/Controller/ApiKeyController.php | |
* | |
* @author TLe, Tarmo LeppΓ€nen <[email protected]> | |
*/ | |
namespace App\Controller; |
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 | |
declare(strict_types = 1); | |
namespace App\ArgumentResolver; | |
use App\DTO\Account\RegistrationDto; | |
use Generator; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface; | |
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata; |
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
root@d3fbc9afa338:/app# make psalm | |
Running Psalm - A static analysis tool for PHP | |
Psalm 3.4.12@86e5e50c1bb492045e70f2ebe1da3cad06e4e9b2 | |
Scanning files... | |
Analyzing files... | |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 60 / 241 (25%) | |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 120 / 241 (50%) | |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 180 / 241 (75%) | |
βββββEββEββββββββββββββββββββEEβββββββββββββββββββββββββββββ 240 / 241 (100%) |