File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ protected function resetLoaders(): void
56
56
$ this ->loaders = [];
57
57
}
58
58
59
- protected function getLoader (string $ config , ContainerBuilder $ builder )
59
+ protected function getLoader (string $ config , ContainerBuilder $ builder ): LoaderInterface
60
60
{
61
61
$ ext = pathinfo ($ config , PATHINFO_EXTENSION );
62
62
$ ext = $ ext === 'yaml ' ? 'yml ' : $ ext ;
Original file line number Diff line number Diff line change 4
4
namespace PTS \SymfonyDiLoader ;
5
5
6
6
use JsonException ;
7
- use Symfony \Component \DependencyInjection \ContainerBuilder ;
8
7
use Symfony \Component \DependencyInjection \ContainerInterface ;
9
8
use Symfony \Component \DependencyInjection \Extension \ExtensionInterface ;
10
9
@@ -61,18 +60,13 @@ public function clearProcessCache(): self
61
60
62
61
protected function generateContainer (array $ configFiles , string $ cacheFile ): ContainerInterface
63
62
{
64
- $ container = $ this ->createContainer ($ configFiles , $ this ->extensions );
63
+ $ container = $ this ->factory -> create ($ configFiles , $ this ->extensions );
65
64
$ this ->dumper ->dump ($ cacheFile , $ this ->classContainer , $ container );
66
65
$ this ->dumper ->dumpMeta ($ cacheFile . '.v2.meta ' , $ container , $ this ->getWatcher ());
67
66
68
67
return $ container ;
69
68
}
70
69
71
- protected function createContainer (array $ configs , array $ extensions = []): ContainerBuilder
72
- {
73
- return $ this ->factory ->create ($ configs , $ extensions );
74
- }
75
-
76
70
/**
77
71
* @param string $fileCache
78
72
* @param string[] $configs
You can’t perform that action at this time.
0 commit comments