for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Backend\Modules\Analytics\Actions;
use Backend\Core\Engine\Base\ActionDelete;
use Backend\Core\Engine\Model;
/**
* This is the reset-action. It will remove your coupling with analytics
*/
final class Reset extends ActionDelete
{
public function execute(): void
$this->get('fork.settings')->delete($this->getModule(), 'certificate');
$this->get('fork.settings')->delete($this->getModule(), 'email');
$this->get('fork.settings')->delete($this->getModule(), 'account');
$this->get('fork.settings')->delete($this->getModule(), 'web_property_id');
$this->get('fork.settings')->delete($this->getModule(), 'profile');
$this->redirect(Model::createUrlForAction('Settings'));
}