mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 17:22:41 +01:00
Add allow_anonymous_stats
This commit is contained in:
parent
64f5bbce7a
commit
5f2d07369d
@ -137,7 +137,8 @@ class InitCommand extends Command
|
||||
'This function will not affect the performance of Deployer as',
|
||||
'the data is insignificant and transmitted in separate process.',
|
||||
]);
|
||||
$params['allow_anonymous_stats'] = $io->confirm('Do you confirm?');
|
||||
|
||||
$params['allow_anonymous_stats'] = $GLOBALS['allow_anonymous_stats'] = $io->confirm('Do you confirm?');
|
||||
}
|
||||
|
||||
$filePath = $this->initializer->initialize($template, $directory, $file, $params);
|
||||
|
@ -347,6 +347,10 @@ class Deployer extends Container
|
||||
$stats['exception'] = get_class($commandEvent->getException());
|
||||
}
|
||||
|
||||
if ($stats['command_name'] === 'init') {
|
||||
$stats['allow_anonymous_stats'] = $GLOBALS['allow_anonymous_stats'] ?? false;
|
||||
}
|
||||
|
||||
if ($stats['command_name'] === 'worker') {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user