Skip to content

Commit bfd6b82

Browse files
authored
Merge pull request #264 from dotkernel/issue-246
Removed unused config
2 parents 5c6e899 + 80c684f commit bfd6b82

File tree

4 files changed

+1
-18
lines changed

4 files changed

+1
-18
lines changed

config/autoload/doctrine.global.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Ramsey\Uuid\Doctrine\UuidType;
1313

1414
return [
15-
'doctrine' => [
15+
'doctrine' => [
1616
'configuration' => [
1717
'orm_default' => [
1818
'entity_listener_resolver' => EntityListenerResolver::class,
@@ -69,5 +69,4 @@
6969
],
7070
'fixtures' => getcwd() . '/data/doctrine/fixtures',
7171
],
72-
'resultCacheLifetime' => 300,
7372
];

config/autoload/local.php.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ $databases = [
2626
];
2727

2828
return [
29-
'annotations_cache_dir' => getcwd() . '/data/cache/annotations',
3029
'application' => [
3130
'name' => $app['name'] ?? '',
3231
'url' => $baseUrl,

src/Admin/src/Repository/AdminRepository.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,4 @@ public function countAdminLogins(): mixed
137137
->getQuery()
138138
->getSingleScalarResult();
139139
}
140-
141-
public function getCacheLifetime(): int
142-
{
143-
return $this->cacheLifetime;
144-
}
145-
146-
public function setCacheLifetime(int $cacheLifetime): self
147-
{
148-
$this->cacheLifetime = $cacheLifetime;
149-
150-
return $this;
151-
}
152140
}

src/Admin/src/Service/AdminService.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,12 @@ class AdminService implements AdminServiceInterface
2929
LocationServiceInterface::class,
3030
AdminRepository::class,
3131
AdminRoleRepository::class,
32-
"config.resultCacheLifetime"
3332
)]
3433
public function __construct(
3534
protected LocationServiceInterface $locationService,
3635
protected AdminRepository $adminRepository,
3736
protected AdminRoleRepository $adminRoleRepository,
38-
int $cacheLifetime,
3937
) {
40-
$this->adminRepository->setCacheLifetime($cacheLifetime);
4138
}
4239

4340
public function getAdminRepository(): AdminRepository|EntityRepository

0 commit comments

Comments
 (0)