TcaFiles::loadExtensionConfiguration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
cc 1
nc 1
nop 2
crap 2
1
<?php
2
3
/**
4
 * Create the TCA files.
5
 */
6
declare(strict_types = 1);
7
8
namespace HDNET\Autoloader\Loader;
9
10
use HDNET\Autoloader\Loader;
11
use HDNET\Autoloader\LoaderInterface;
12
use HDNET\Autoloader\SmartObjectManager;
13
14
/**
15
 * Create the TCA files.
16
 */
17
class TcaFiles implements LoaderInterface
18
{
19
    /**
20
     * Get all the complex data for the loader.
21
     * This return value will be cached and stored in the database
22
     * There is no file monitoring for this cache.
23
     */
24
    public function prepareLoader(Loader $loader, int $type): array
25
    {
26
        if (LoaderInterface::EXT_TABLES !== $type) {
27
            return [];
28
        }
29
30
        SmartObjectManager::checkAndCreateTcaInformation();
31
32
        // no preparations, because the smart objects fill the register
33
        return [];
34
    }
35
36
    /**
37
     * Run the loading process for the ext_tables.php file.
38
     */
39
    public function loadExtensionTables(Loader $loader, array $loaderInformation): void
40
    {
41
    }
42
43
    /**
44
     * Run the loading process for the ext_localconf.php file.
45
     */
46
    public function loadExtensionConfiguration(Loader $loader, array $loaderInformation): void
47
    {
48
    }
49
}
50