[FEATURE] Refactor AdminPanel API to use composition
[Packages/TYPO3.CMS.git] / typo3 / sysext / adminpanel / Classes / ModuleApi / OnSubmitActorInterface.php
1 <?php
2 declare(strict_types = 1);
3
4 namespace TYPO3\CMS\Adminpanel\ModuleApi;
5
6 /*
7 * This file is part of the TYPO3 CMS project.
8 *
9 * It is free software; you can redistribute it and/or modify it under
10 * the terms of the GNU General Public License, either version 2
11 * of the License, or any later version.
12 *
13 * For the full copyright and license information, please read the
14 * LICENSE.txt file that was distributed with this source code.
15 *
16 * The TYPO3 project - inspiring people to share!
17 */
18 use Psr\Http\Message\ServerRequestInterface;
19
20 /**
21 * Adminpanel interface for modules that need to react on changed configuration
22 * (for example if fluid debug settings change, the frontend cache should be cleared)
23 */
24 interface OnSubmitActorInterface
25 {
26 /**
27 * Executed on saving / submit of the configuration form
28 * Can be used to react to changed settings
29 * (for example: clearing a specific cache)
30 *
31 * @param array $configurationToSave
32 * @param ServerRequestInterface $request
33 */
34 public function onSubmit(array $configurationToSave, ServerRequestInterface $request): void;
35 }