diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 5c128cb..e8ba6a0 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -15,8 +15,8 @@ jobs: - ubuntu-latest php: - - "8.1" - "8.2" + - "8.3" steps: - name: Checkout diff --git a/.github/workflows/cs-tests.yml b/.github/workflows/cs-tests.yml index 2fc59a6..ccd3f74 100644 --- a/.github/workflows/cs-tests.yml +++ b/.github/workflows/cs-tests.yml @@ -15,8 +15,8 @@ jobs: - ubuntu-latest php: - - "8.1" - "8.2" + - "8.3" steps: - name: Checkout diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 39ee42c..7db2f86 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,8 +15,8 @@ jobs: - ubuntu-latest php: - - "8.1" - "8.2" + - "8.3" steps: - name: Checkout diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index ede9691..8d7d667 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -15,8 +15,8 @@ jobs: - ubuntu-latest php: - - "8.1" - "8.2" + - "8.3" steps: - name: Checkout diff --git a/README.md b/README.md index 74e1143..b977ba3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Based on Enrico Zimuel's [Zend Expressive API - Skeleton example](https://github.com/ezimuel/zend-expressive-api), DotKernel API runs on [Laminas](https://github.com/laminas) and [Mezzio](https://github.com/mezzio) components and implements standards like PSR-3, PSR-4, PSR-7, PSR-11 and PSR-15. ![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/api) -![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/4.2.0) +![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/4.3.0) [![GitHub issues](https://img.shields.io/github/issues/dotkernel/api)](https://github.com/dotkernel/api/issues) [![GitHub forks](https://img.shields.io/github/forks/dotkernel/api)](https://github.com/dotkernel/api/network) diff --git a/composer.json b/composer.json index 5f6ad07..0d593ba 100644 --- a/composer.json +++ b/composer.json @@ -42,44 +42,44 @@ } }, "require": { - "php": "~8.1.0 || ~8.2.0", + "php": "~8.2.0 || ~8.3.0", "ext-gd": "*", "ext-json": "*", - "dotkernel/dot-annotated-services": "^4.1.2", - "dotkernel/dot-cli": "^3.4.0", - "dotkernel/dot-data-fixtures": "^1.1.1", - "dotkernel/dot-doctrine-metadata": "^3.2.0", - "dotkernel/dot-errorhandler": "^3.3.1", - "dotkernel/dot-mail": "~4.1.0", - "dotkernel/dot-response-header": "^3.2.0", - "laminas/laminas-component-installer": "^3.3.0", - "laminas/laminas-config": "^3.7.0", - "laminas/laminas-config-aggregator": "^1.7.0", - "laminas/laminas-http": "^2.15.1", - "laminas/laminas-hydrator": "^4.3.1", - "laminas/laminas-inputfilter": "^2.18.0", - "laminas/laminas-paginator": "^2.12.2", - "laminas/laminas-stdlib": "^3.10.1", - "laminas/laminas-text": "^2.9.0", - "mezzio/mezzio": "^3.13.0", - "mezzio/mezzio-authentication-oauth2": "^2.4.1", - "mezzio/mezzio-authorization-acl": "^1.3.0", - "mezzio/mezzio-authorization-rbac": "^1.3.0", - "mezzio/mezzio-cors": "^1.3.0", - "mezzio/mezzio-fastroute": "^3.5.0", - "mezzio/mezzio-problem-details": "^1.6.2", - "mezzio/mezzio-twigrenderer": "^2.9.0", - "ramsey/uuid-doctrine": "^1.8.1", - "roave/psr-container-doctrine": "^3.5.0", - "symfony/filesystem": "^6.2" + "dotkernel/dot-annotated-services": "^4.1.6", + "dotkernel/dot-cli": "^3.5.0", + "dotkernel/dot-data-fixtures": "^1.1.3", + "dotkernel/dot-doctrine-metadata": "^3.2.2", + "dotkernel/dot-errorhandler": "^3.3.2", + "dotkernel/dot-mail": "^4.1.1", + "dotkernel/dot-response-header": "^3.2.3", + "laminas/laminas-component-installer": "^3.4.0", + "laminas/laminas-config": "^3.9.0", + "laminas/laminas-config-aggregator": "^1.14.0", + "laminas/laminas-http": "^2.19.0", + "laminas/laminas-hydrator": "^4.15.0", + "laminas/laminas-inputfilter": "^2.29.0", + "laminas/laminas-paginator": "^2.18.0", + "laminas/laminas-stdlib": "^3.19.0", + "laminas/laminas-text": "^2.11.0", + "mezzio/mezzio": "^3.19.0", + "mezzio/mezzio-authentication-oauth2": "^2.8.0", + "mezzio/mezzio-authorization-acl": "^1.10.0", + "mezzio/mezzio-authorization-rbac": "^1.7.0", + "mezzio/mezzio-cors": "^1.11.1", + "mezzio/mezzio-fastroute": "^3.11.0", + "mezzio/mezzio-problem-details": "^1.13.1", + "mezzio/mezzio-twigrenderer": "^2.15.0", + "ramsey/uuid-doctrine": "^2.0.0", + "roave/psr-container-doctrine": "^4.1.0", + "symfony/filesystem": "^7.0.3" }, "require-dev": { "laminas/laminas-coding-standard": "^2.5", - "laminas/laminas-development-mode": "^3.6", - "mezzio/mezzio-tooling": "^2.5", - "phpunit/phpunit": "^10.2", + "laminas/laminas-development-mode": "^3.12.0", + "mezzio/mezzio-tooling": "^2.9.0", + "phpunit/phpunit": "^10.5.10", "roave/security-advisories": "dev-latest", - "vimeo/psalm": "^5.13" + "vimeo/psalm": "^5.22.0" }, "autoload": { "psr-4": { diff --git a/config/autoload/doctrine.global.php b/config/autoload/doctrine.global.php index 790b1c8..c999dd5 100644 --- a/config/autoload/doctrine.global.php +++ b/config/autoload/doctrine.global.php @@ -2,7 +2,7 @@ declare(strict_types=1); -use Doctrine\Common\Cache\PhpFileCache; +//use Doctrine\Common\Cache\PhpFileCache; use Doctrine\ORM\Mapping\Driver\AttributeDriver; use Doctrine\Persistence\Mapping\Driver\MappingDriverChain; use Ramsey\Uuid\Doctrine\UuidBinaryOrderedTimeType; @@ -49,12 +49,12 @@ UuidBinaryType::NAME => UuidBinaryType::class, UuidBinaryOrderedTimeType::NAME => UuidBinaryOrderedTimeType::class, ], - 'cache' => [ - PhpFileCache::class => [ - 'class' => PhpFileCache::class, - 'directory' => getcwd() . '/data/cache/doctrine', - ], - ], +// 'cache' => [ +// PhpFileCache::class => [ +// 'class' => PhpFileCache::class, +// 'directory' => getcwd() . '/data/cache/doctrine', +// ], +// ], 'fixtures' => getcwd() . '/data/doctrine/fixtures', ], 'resultCacheLifetime' => 3600, diff --git a/src/App/src/ConfigProvider.php b/src/App/src/ConfigProvider.php index 7bcb414..3d45e4b 100644 --- a/src/App/src/ConfigProvider.php +++ b/src/App/src/ConfigProvider.php @@ -7,7 +7,7 @@ use Api\App\Command\RouteListCommand; use Api\App\Command\TokenGenerateCommand; use Api\App\Entity\EntityListenerResolver; -use Api\App\Factory\AnnotationsCacheFactory; +//use Api\App\Factory\AnnotationsCacheFactory; use Api\App\Factory\AuthenticationMiddlewareFactory; use Api\App\Factory\EntityListenerResolverFactory; use Api\App\Factory\RouteListCommandFactory; @@ -19,7 +19,7 @@ use Api\App\Service\ErrorReportServiceInterface; use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManagerInterface; -use Dot\AnnotatedServices\Factory\AbstractAnnotatedFactory; +//use Dot\AnnotatedServices\Factory\AbstractAnnotatedFactory; use Dot\AnnotatedServices\Factory\AnnotatedServiceFactory; use Dot\Mail\Factory\MailOptionsAbstractFactory; use Dot\Mail\Factory\MailServiceAbstractFactory; @@ -63,7 +63,7 @@ public function getDependencies(): array 'doctrine.entity_manager.orm_default' => EntityManagerFactory::class, 'dot-mail.options.default' => MailOptionsAbstractFactory::class, 'dot-mail.service.default' => MailServiceAbstractFactory::class, - AbstractAnnotatedFactory::CACHE_SERVICE => AnnotationsCacheFactory::class, +// AbstractAnnotatedFactory::CACHE_SERVICE => AnnotationsCacheFactory::class, AuthenticationMiddleware::class => AuthenticationMiddlewareFactory::class, AuthorizationMiddleware::class => AnnotatedServiceFactory::class, Environment::class => TwigEnvironmentFactory::class,