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:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user