forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 2
/
InformAboutGUSCommand.php
50 lines (42 loc) · 1.73 KB
/
InformAboutGUSCommand.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\CoreBundle\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
final class InformAboutGUSCommand extends Command
{
protected function configure(): void
{
$this->setName('sylius:inform-about-gus');
$this->setDescription('Informs about Sylius internal statistical service');
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$style = new SymfonyStyle($input, $output);
$style->note(
[
'For purely statistical purposes and in order to inform you about important updates and security patches, Sylius might send non-sensitive data to our servers. We send:',
'* Hostname',
'* User-agent',
'* Locale',
'* Environment (test, dev or prod)',
'* Currently used Sylius version',
'* Date of the last contact',
'If you do not consent please follow this cookbook article:',
'https://docs.sylius.com/en/latest/cookbook/configuration/disabling-admin-notifications.html',
'That being said, every time we get a notification about a new site deployed with Sylius, it brings a huge smile to our face and motivates us to continue our Open Source work.',
]
);
return 0;
}
}