Skip to content

Commit 11625c1

Browse files
author
DKravtsov
committed
Added tests for ApiKey routes v2, small improvements, added composer tools.
1 parent 0eb2122 commit 11625c1

36 files changed

+4334
-1470
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,3 +365,15 @@ ifeq ($(INSIDE_DOCKER_CONTAINER), 1)
365365
else
366366
@make exec cmd="make phpinsights"
367367
endif
368+
369+
composer-normalize: ## Normalizes composer.json file content
370+
@make exec cmd="composer normalize"
371+
372+
composer-validate: ## Validate composer.json file content
373+
@make exec cmd="composer validate --no-check-version"
374+
375+
composer-require-checker: ## Check the defined dependencies against your code
376+
@make exec-bash cmd="XDEBUG_MODE=off php ./vendor/bin/composer-require-checker"
377+
378+
composer-unused: ## Show unused packages by scanning and comparing package namespaces against your code
379+
@make exec-bash cmd="XDEBUG_MODE=off php ./vendor/bin/composer-unused"

composer-unused.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use ComposerUnused\ComposerUnused\Configuration\Configuration;
6+
use ComposerUnused\ComposerUnused\Configuration\NamedFilter;
7+
use ComposerUnused\ComposerUnused\Configuration\PatternFilter;
8+
use Webmozart\Glob\Glob;
9+
10+
return static function (Configuration $config): Configuration {
11+
return $config
12+
->addPatternFilter(PatternFilter::fromString('/ext-.*/'))
13+
->addNamedFilter(NamedFilter::fromString('beberlei/doctrineextensions'))
14+
->addNamedFilter(NamedFilter::fromString('doctrine/doctrine-migrations-bundle'))
15+
->addNamedFilter(NamedFilter::fromString('dukecity/command-scheduler-bundle'))
16+
->addNamedFilter(NamedFilter::fromString('lexik/jwt-authentication-bundle'))
17+
->addNamedFilter(NamedFilter::fromString('matthiasnoback/symfony-console-form'))
18+
->addNamedFilter(NamedFilter::fromString('nelmio/cors-bundle'))
19+
->addPatternFilter(PatternFilter::fromString('/symfony\/.*/'))
20+
->addNamedFilter(NamedFilter::fromString('twig/extra-bundle'))
21+
->setAdditionalFilesFor('icanhazstring/composer-unused', [
22+
__FILE__,
23+
...Glob::glob(__DIR__ . '/config/*.php'),
24+
]);
25+
};

composer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"Elasticsearch"
1515
],
1616
"homepage": "https://github.com/systemsdk/docker-symfony-api",
17-
"version": "v1.2.0",
17+
"version": "v1.2.1",
1818
"license": "MIT",
1919
"authors": [
2020
{
@@ -43,10 +43,10 @@
4343
"doctrine/annotations": "^1.13",
4444
"doctrine/doctrine-bundle": "^2.7",
4545
"doctrine/doctrine-migrations-bundle": "^3.2",
46-
"doctrine/orm": "^2.12",
46+
"doctrine/orm": "^2.13",
4747
"dukecity/command-scheduler-bundle": "^5.0",
4848
"elasticsearch/elasticsearch": "^7.17",
49-
"gedmo/doctrine-extensions": "^3.7",
49+
"gedmo/doctrine-extensions": "^3.8",
5050
"lexik/jwt-authentication-bundle": "^2.16",
5151
"mark-gerarts/automapper-plus-bundle": "^1.4",
5252
"matomo/device-detector": "^6.0",
@@ -98,11 +98,10 @@
9898
"bamarni/composer-bin-plugin": "^1.8",
9999
"doctrine/doctrine-fixtures-bundle": "^3.4",
100100
"systemsdk/easy-log-bundle": "2.0.*",
101-
"ergebnis/composer-normalize": "^2.22",
102101
"roave/security-advisories": "dev-latest",
103102
"symfony/browser-kit": "6.1.*",
104103
"symfony/debug-bundle": "6.1.*",
105-
"symfony/maker-bundle": "^1.43",
104+
"symfony/maker-bundle": "^1.45",
106105
"symfony/requirements-checker": "^2.0",
107106
"symfony/stopwatch": "6.1.*",
108107
"symfony/var-dumper": "6.1.*",

0 commit comments

Comments
 (0)