16
16
use Drupal \Core \Config \ConfigFactoryInterface ;
17
17
use Drupal \Core \Config \FileStorage ;
18
18
use Drupal \Core \Config \ImportStorageTransformer ;
19
- use Drupal \Core \Config \StorageCacheInterface ;
20
19
use Drupal \Core \Config \StorageComparer ;
21
20
use Drupal \Core \Config \StorageInterface ;
22
21
use Drupal \Core \Config \StorageManagerInterface ;
33
32
use Symfony \Component \Console \Completion \CompletionSuggestions ;
34
33
use Symfony \Component \Console \Helper \Table ;
35
34
use Symfony \Component \Console \Output \OutputInterface ;
35
+ use Symfony \Component \DependencyInjection \Attribute \Autowire ;
36
36
use Symfony \Component \Filesystem \Path ;
37
37
use Symfony \Component \Yaml \Parser ;
38
38
@@ -57,22 +57,15 @@ public function getConfigFactory(): ConfigFactoryInterface
57
57
58
58
public function __construct (
59
59
protected ConfigFactoryInterface $ configFactory ,
60
- protected StorageCacheInterface $ configStorage ,
60
+ #[Autowire(service: 'config.storage ' )]
61
+ protected StorageInterface $ configStorage ,
61
62
protected SiteAliasManagerInterface $ siteAliasManager ,
62
63
protected StorageManagerInterface $ configStorageExport ,
63
64
protected ImportStorageTransformer $ importStorageTransformer ,
64
65
) {
65
66
parent ::__construct ();
66
67
}
67
68
68
- public function getConfigStorageExport (): StorageManagerInterface |StorageCacheInterface
69
- {
70
- if (isset ($ this ->configStorageExport )) {
71
- return $ this ->configStorageExport ;
72
- }
73
- return $ this ->configStorage ;
74
- }
75
-
76
69
public function hasImportTransformer (): bool
77
70
{
78
71
return isset ($ this ->importStorageTransformer );
0 commit comments