2026-06-05 12:25:07 -04:00
|
|
|
<?php
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-06-05 12:25:07 -04:00
|
|
|
return [
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Addon Lifecycle Hooks
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| When enabled, the Panel executes the hook scripts that addons place under
|
|
|
|
|
| "addons/<name>/hooks/<event>" during lifecycle events such as post-install
|
|
|
|
|
| (see the p:environment:addons:run-hooks command). These scripts run with
|
2026-10-05 18:10:18 -04:00
|
|
|
| the privileges of the invoking process - often root during an upgrade - so
|
2026-06-05 12:25:07 -04:00
|
|
|
| only enable this if you trust every installed addon.
|
|
|
|
|
|
|
|
|
|
|
*/
|
2026-10-11 19:15:22 -04:00
|
|
|
'hooks_enabled' => (bool) env('ADDONS_HOOKS_ENABLED', false),
|
2026-06-05 12:25:07 -04:00
|
|
|
];
|