Skip to content

Commit

Permalink
fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bidi47 committed Feb 16, 2024
1 parent 53d95c5 commit a0a4cbe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 56 deletions.
7 changes: 0 additions & 7 deletions config/autoload/doctrine.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

declare(strict_types=1);

//use Doctrine\Common\Cache\PhpFileCache;
use Doctrine\ORM\Mapping\Driver\AttributeDriver;
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
use Ramsey\Uuid\Doctrine\UuidBinaryOrderedTimeType;
Expand Down Expand Up @@ -49,12 +48,6 @@
UuidBinaryType::NAME => UuidBinaryType::class,
UuidBinaryOrderedTimeType::NAME => UuidBinaryOrderedTimeType::class,
],
// 'cache' => [
// PhpFileCache::class => [
// 'class' => PhpFileCache::class,
// 'directory' => getcwd() . '/data/cache/doctrine',
// ],
// ],
'fixtures' => getcwd() . '/data/doctrine/fixtures',
],
'resultCacheLifetime' => 3600,
Expand Down
11 changes: 0 additions & 11 deletions config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
declare(strict_types=1);

use Api\App\Entity\EntityListenerResolver;
use Doctrine\Common\Cache\PhpFileCache;

$baseUrl = 'http://localhost:8080';

Expand Down Expand Up @@ -53,16 +52,6 @@ return [
'params' => $databases['default'],
],
],
'configuration' => [
'orm_default' => [
// it is recommended to disable doctrine cache on development
// just comment any type of cache you don't want to be applied on development
'query_cache' => PhpFileCache::class,
'metadata_cache' => PhpFileCache::class,
'result_cache' => PhpFileCache::class,
'entity_listener_resolver' => EntityListenerResolver::class,
],
],
],
'uploads' => [
'user' => [
Expand Down
29 changes: 13 additions & 16 deletions src/App/src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Api\App\Command\RouteListCommand;
use Api\App\Command\TokenGenerateCommand;
use Api\App\Entity\EntityListenerResolver;
//use Api\App\Factory\AnnotationsCacheFactory;
use Api\App\Factory\AuthenticationMiddlewareFactory;
use Api\App\Factory\EntityListenerResolverFactory;
use Api\App\Factory\RouteListCommandFactory;
Expand All @@ -19,7 +18,6 @@
use Api\App\Service\ErrorReportServiceInterface;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
//use Dot\AnnotatedServices\Factory\AbstractAnnotatedFactory;
use Dot\AnnotatedServices\Factory\AnnotatedServiceFactory;
use Dot\Mail\Factory\MailOptionsAbstractFactory;
use Dot\Mail\Factory\MailServiceAbstractFactory;
Expand Down Expand Up @@ -60,20 +58,19 @@ public function getDependencies(): array
],
],
'factories' => [
'doctrine.entity_manager.orm_default' => EntityManagerFactory::class,
'dot-mail.options.default' => MailOptionsAbstractFactory::class,
'dot-mail.service.default' => MailServiceAbstractFactory::class,
// AbstractAnnotatedFactory::CACHE_SERVICE => AnnotationsCacheFactory::class,
AuthenticationMiddleware::class => AuthenticationMiddlewareFactory::class,
AuthorizationMiddleware::class => AnnotatedServiceFactory::class,
Environment::class => TwigEnvironmentFactory::class,
TwigExtension::class => TwigExtensionFactory::class,
TwigRenderer::class => TwigRendererFactory::class,
ErrorResponseMiddleware::class => AnnotatedServiceFactory::class,
RouteListCommand::class => RouteListCommandFactory::class,
TokenGenerateCommand::class => TokenGenerateCommandFactory::class,
ErrorReportService::class => AnnotatedServiceFactory::class,
EntityListenerResolver::class => EntityListenerResolverFactory::class,
'doctrine.entity_manager.orm_default' => EntityManagerFactory::class,
'dot-mail.options.default' => MailOptionsAbstractFactory::class,
'dot-mail.service.default' => MailServiceAbstractFactory::class,
AuthenticationMiddleware::class => AuthenticationMiddlewareFactory::class,
AuthorizationMiddleware::class => AnnotatedServiceFactory::class,
Environment::class => TwigEnvironmentFactory::class,
TwigExtension::class => TwigExtensionFactory::class,
TwigRenderer::class => TwigRendererFactory::class,
ErrorResponseMiddleware::class => AnnotatedServiceFactory::class,
RouteListCommand::class => RouteListCommandFactory::class,
TokenGenerateCommand::class => TokenGenerateCommandFactory::class,
ErrorReportService::class => AnnotatedServiceFactory::class,
EntityListenerResolver::class => EntityListenerResolverFactory::class,
],
'aliases' => [
Authentication\AuthenticationInterface::class => Authentication\OAuth2\OAuth2Adapter::class,
Expand Down
22 changes: 0 additions & 22 deletions src/App/src/Factory/AnnotationsCacheFactory.php

This file was deleted.

0 comments on commit a0a4cbe

Please sign in to comment.