Skip to content

Commit 2fc8cb9

Browse files
committed
Merge branch 'main' of https://github.com/NeoXider/CoreAI
2 parents 069d50b + 2b32e9d commit 2fc8cb9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Assets/CoreAiUnity/Runtime/Source/Features/Audit/AuditLogWriter.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Newtonsoft.Json;
1010
using Newtonsoft.Json.Linq;
1111
using UnityEngine;
12+
using VContainer;
1213

1314
namespace CoreAI.Features.Audit
1415
{
@@ -48,6 +49,9 @@ internal void RotateForTesting()
4849
RotateNow();
4950
}
5051

52+
// WHY [Inject]: без атрибута VContainer.SourceGenerator выбирает конструктор с максимумом
53+
// параметров — internal AuditLogWriter(string) — и падает на резолве System.String.
54+
[Inject]
5155
public AuditLogWriter()
5256
: this(Path.Combine(Application.persistentDataPath, CoreAiPersistentPaths.RootFolderName, "Audit"))
5357
{

0 commit comments

Comments
 (0)