-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfractor.php
More file actions
48 lines (44 loc) · 1.32 KB
/
fractor.php
File metadata and controls
48 lines (44 loc) · 1.32 KB
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
<?php
/**
* Fractor configuration for TYPO3 v14 extension upgrade
*
* Fractor handles non-PHP file migrations:
* - FlexForms (XML)
* - TypoScript
* - YAML (e.g., Services.yaml)
* - Fluid templates
* - .htaccess files
*
* Usage:
* ./vendor/bin/fractor process --dry-run # Preview changes
* ./vendor/bin/fractor process # Apply changes
*
* NOTE: Fractor does NOT support --config flag.
* It auto-discovers fractor.php in the current working directory.
* Place this file in the extension root and run from there.
*
* Requires: composer require --dev a9f/typo3-fractor:^0.5
*
* @see https://github.com/andreaswolf/fractor
*/
declare(strict_types=1);
use a9f\Fractor\Configuration\FractorConfiguration;
use a9f\FractorTypoScript\Configuration\TypoScriptProcessorOption;
use a9f\Typo3Fractor\Set\Typo3LevelSetList;
return FractorConfiguration::configure()
->withPaths([
__DIR__ . '/Configuration',
__DIR__ . '/Resources',
])
->withSkip([
__DIR__ . '/.Build',
__DIR__ . '/vendor',
])
->withSets([
// v13+v14 dual compatibility: use v13 rules only
Typo3LevelSetList::UP_TO_TYPO3_13,
])
->withOptions([
// Preserve indentation inside TypoScript conditions
TypoScriptProcessorOption::INDENT_CONDITIONS => true,
]);