File tree Expand file tree Collapse file tree 4 files changed +1
-18
lines changed
Expand file tree Collapse file tree 4 files changed +1
-18
lines changed Original file line number Diff line number Diff line change 1212use Ramsey \Uuid \Doctrine \UuidType ;
1313
1414return [
15- 'doctrine ' => [
15+ 'doctrine ' => [
1616 'configuration ' => [
1717 'orm_default ' => [
1818 'entity_listener_resolver ' => EntityListenerResolver::class,
6969 ],
7070 'fixtures ' => getcwd () . '/data/doctrine/fixtures ' ,
7171 ],
72- 'resultCacheLifetime ' => 300 ,
7372];
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ $databases = [
2626];
2727
2828return [
29- 'annotations_cache_dir' => getcwd() . '/data/cache/annotations',
3029 'application' => [
3130 'name' => $app['name'] ?? '',
3231 'url' => $baseUrl,
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments