Skip to content

Commit

Permalink
fix: Добавлена отчистка данных функции initServices при генерации (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeidoNoHitsuji committed Aug 10, 2023
1 parent 5014fc6 commit aa1716f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GRPC/Generator/BootloaderGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ private function updateInitConfigMethod(FileDeclaration $file, array $files): vo
private function updateInitServicesMethod(FileDeclaration $file, array $files): void
{
$method = $file->getClass(self::BOOTLOADER_NAME)->getMethod('initServices');

$method->setBody('');

foreach ($files as $service) {
if (!\str_ends_with($service, 'Interface.php')) {
continue;
Expand Down

0 comments on commit aa1716f

Please sign in to comment.