/** @var string $cachePrefix */
$cachePrefix =
$script['appName'
] ?
md5($script['appName'
] .
$script['appVersion'
]) : EnvironmentHelper::
getVariable('INSTANCE_ID', ''
);
$includes =
array_map(function Darray
$script) use ($appId) { $script['app_id'
] =
$appId;
return new Script( $script['name'
],
$script['script'
],
new \
DateTimeImmutable($script['lastModified'
]),
$this->
getAppInfo($script) );
},
$includes);
$options =
[];
if (!
$this->debug
) { $options['cache'
] =
new FilesystemCache($this->cacheDir . '/' .
$cachePrefix);
} else { $options['debug'
] = true;
} $executableScripts[$script['hook'
]][] =
new Script(