|
6 | 6 |
|
7 | 7 | use Gacela\Console\Domain\AllAppModules\AppModule; |
8 | 8 | use Gacela\Console\Domain\CommandArguments\CommandArguments; |
9 | | -use Gacela\Console\Domain\DependencyAnalyzer\TModuleDependency; |
10 | 9 | use Gacela\Framework\AbstractFacade; |
11 | 10 |
|
12 | | -use function function_exists; |
13 | | - |
14 | 11 | /** |
15 | 12 | * @extends AbstractFacade<ConsoleFactory> |
16 | 13 | */ |
@@ -75,102 +72,10 @@ public function getContainerDependencyTree(string $className): array |
75 | 72 | return $this->getFactory()->getContainerDependencyTree($className); |
76 | 73 | } |
77 | 74 |
|
78 | | - /** |
79 | | - * @param list<AppModule> $modules |
80 | | - * |
81 | | - * @return list<TModuleDependency> |
82 | | - */ |
83 | | - public function analyzeModuleDependencies(array $modules): array |
84 | | - { |
85 | | - return $this->getFactory()->createDependencyAnalyzer()->analyzeModules($modules); |
86 | | - } |
87 | | - |
88 | | - /** |
89 | | - * @param list<TModuleDependency> $dependencies |
90 | | - * |
91 | | - * @return list<array{from: string, to: string}> |
92 | | - */ |
93 | | - public function detectCircularDependencies(array $dependencies): array |
94 | | - { |
95 | | - return $this->getFactory()->createDependencyAnalyzer()->detectCircularDependencies($dependencies); |
96 | | - } |
97 | | - |
98 | | - /** |
99 | | - * @param list<TModuleDependency> $dependencies |
100 | | - */ |
101 | | - public function formatDependencies(array $dependencies, string $format): string |
102 | | - { |
103 | | - return $this->getFactory()->createDependencyFormatter($format)->format($dependencies); |
104 | | - } |
105 | | - |
106 | 75 | public function compileContainer(): string |
107 | 76 | { |
108 | 77 | return $this->getFactory()->createContainerCompiler()->compile( |
109 | 78 | $this->getFactory()->getMainContainer(), |
110 | 79 | ); |
111 | 80 | } |
112 | | - |
113 | | - /** |
114 | | - * @param list<AppModule> $modules |
115 | | - */ |
116 | | - public function generateIdeHelperMeta(array $modules): string |
117 | | - { |
118 | | - return $this->getFactory()->createIdeHelperGenerator()->generatePhpStormMeta($modules); |
119 | | - } |
120 | | - |
121 | | - /** |
122 | | - * @return list<string> |
123 | | - */ |
124 | | - public function generateTemplateFiles( |
125 | | - CommandArguments $arguments, |
126 | | - string $template, |
127 | | - bool $withTests, |
128 | | - bool $withApi, |
129 | | - ): array { |
130 | | - return $this->getFactory() |
131 | | - ->createModuleTemplateGenerator() |
132 | | - ->generateTemplateFiles($arguments, $template, $withTests, $withApi); |
133 | | - } |
134 | | - |
135 | | - /** |
136 | | - * @param list<string> $watchPaths |
137 | | - */ |
138 | | - public function initializeFileWatcher(array $watchPaths): void |
139 | | - { |
140 | | - $this->getFactory()->createFileWatcher()->initialize($watchPaths); |
141 | | - } |
142 | | - |
143 | | - /** |
144 | | - * @param list<string> $watchPaths |
145 | | - * |
146 | | - * @return list<string> |
147 | | - */ |
148 | | - public function detectFileChanges(array $watchPaths): array |
149 | | - { |
150 | | - return $this->getFactory()->createFileWatcher()->detectChanges($watchPaths); |
151 | | - } |
152 | | - |
153 | | - public function clearDevelopmentCaches(): void |
154 | | - { |
155 | | - // Clear opcache if available |
156 | | - if (function_exists('opcache_reset')) { |
157 | | - opcache_reset(); |
158 | | - } |
159 | | - |
160 | | - // Clear realpath cache |
161 | | - clearstatcache(true); |
162 | | - |
163 | | - // Clear Gacela's internal caches |
164 | | - $this->getFactory()->getMainContainer()->remove('cache'); |
165 | | - } |
166 | | - |
167 | | - /** |
168 | | - * @param list<array{from: string, to: string}> $dependencies |
169 | | - */ |
170 | | - public function generateModuleDocumentation(AppModule $module, array $dependencies): string |
171 | | - { |
172 | | - return $this->getFactory() |
173 | | - ->createDocumentationGenerator() |
174 | | - ->generateModuleDocumentation($module, $dependencies); |
175 | | - } |
176 | 81 | } |
0 commit comments