/
ProviderInterface.php
57 lines (50 loc) · 1.41 KB
/
ProviderInterface.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
51
52
53
54
55
56
57
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Lowlevel\ConfigurationModuleProvider;
/**
* To be implemented by all configuration providers
*/
interface ProviderInterface
{
/**
* This method must exists since it's called from the provider
* registry to provide the tag attributes from the definition.
*
* Note: We use __invoke so provider implementations are still
* able to use dependency injection via constructor arguments.
*
* @param array $attributes
* @return $this
*/
public function __invoke(array $attributes): self;
/**
* Returns the provider identifier
*
* @return string
*/
public function getIdentifier(): string;
/**
* Returns the providers' label (locallang or static text)
*
* @return string
*/
public function getLabel(): string;
/**
* Returns the configuration, displayed in the module
*
* @return array
*/
public function getConfiguration(): array;
}