mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat: set preferred_renderer when installing from catalog
This commit is contained in:
parent
aa80e944f9
commit
cf7ea6cd3c
3 changed files with 14 additions and 4 deletions
|
|
@ -143,7 +143,7 @@ class PluginImportService
|
|||
*
|
||||
* @throws Exception If the ZIP file is invalid or required files are missing
|
||||
*/
|
||||
public function importFromUrl(string $zipUrl, User $user, ?string $zipEntryPath = null): Plugin
|
||||
public function importFromUrl(string $zipUrl, User $user, ?string $zipEntryPath = null, $preferredRenderer = null): Plugin
|
||||
{
|
||||
// Download the ZIP file
|
||||
$response = Http::timeout(60)->get($zipUrl);
|
||||
|
|
@ -232,6 +232,7 @@ class PluginImportService
|
|||
'render_markup' => $fullLiquid,
|
||||
'configuration_template' => $configurationTemplate,
|
||||
'data_payload' => json_decode($settings['static_data'] ?? '{}', true),
|
||||
'preferred_renderer' => $preferredRenderer,
|
||||
]);
|
||||
|
||||
if (! $plugin_updated) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue