Newer
Older
/**
* Script for post-install-cmd and post-update-cmd.
*/
class Security
{
/**
* To move the safety screen after download in the config directory of the project.
public static function copySafetyScreen(Event $event): void
);
if (empty($search)) {
$event->getIO()
->write('Updating the safety screen ...');
$vendorDir = $event->getComposer()
->getConfig()
->get('vendor-dir');
\copy($vendorDir . '/spip/security/ecran_securite.php', $vendorDir . '/../config/ecran_securite.php');
$event->getIO()
->write('Done.');