feat: lit-library-insert as copy or global instance in the builder's format (E5)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-27 02:27:16 +02:00
co-authored by Claude Opus 5.5
parent 5035092805
commit 7fe91c2bdb
9 changed files with 580 additions and 8 deletions
+7 -3
View File
@@ -116,8 +116,11 @@ final class DiviIntegration implements Integration
];
}
/** The group "Divi-Bibliothek" (lit/library-*), sharing this integration's library access. */
public function library(): LibraryIntegration
/**
* The group "Divi-Bibliothek" (lit/library-*), sharing this integration's library access;
* $diviWritable is whether lit/divi-insert is enabled (lit-library-insert follows it, audit M2).
*/
public function library(?Closure $diviWritable = null): LibraryIntegration
{
$loader = $this->loader();
@@ -128,7 +131,8 @@ final class DiviIntegration implements Integration
$this->writer($loader),
new DiviSaver(),
$this->log,
$this->modules
$this->modules,
$diviWritable
);
}