@@ -4,23 +4,25 @@ Ease your TYPO3 upgrades by also automatically change TypoScript, YAML and Fluid
4
4
5
5
> [ !WARNING]
6
6
> :heavy_exclamation_mark : Never run this tool on production! Always run it on development environment where code is under version control (e.g. git).
7
- > Review and test changes before releasing to production. Code migrations could potentionally break your website!
7
+ > Review and test changes before releasing to production. Code migrations could potentially break your website!
8
8
9
9
## Installation
10
10
11
- Install typo3-fractor via composer by running the following command in your terminal:
11
+ Install TYPO3-Fractor via composer by running the following command in your terminal:
12
12
13
- ```
13
+ ``` bash
14
14
composer require a9f/typo3-fractor --dev
15
15
```
16
16
17
17
## Configuration
18
- Create a PHP configuration file (e.g., fractor.php`) where you define the paths to your files and the rules to apply.
18
+
19
+ Create a PHP configuration file ` fractor.php ` where you define the paths to your files and the rules to apply.
19
20
20
21
``` php
21
22
<?php
22
-
23
- use a9f\Fractor\DependencyInjection\FractorConfiguration;
23
+
24
+ use a9f\Fractor\Configuration\FractorConfiguration;
25
+ use a9f\Typo3Fractor\Set\Typo3LevelSetList;
24
26
25
27
return FractorConfiguration::configure()
26
28
->withPaths([__DIR__ . '/packages/'])
@@ -33,13 +35,18 @@ Have a look at all available rules [Overview of all rules](docs/typo3-fractor-ru
33
35
34
36
## Usage
35
37
36
- Execute it from the command line:
38
+ To see the code migrations that Fractor will do, run:
39
+
40
+ ``` bash
41
+ vendor/bin/fractor process --dry-run
37
42
```
38
- ./vendor/bin/fractor process
43
+
44
+ and when you want to execute the migrations run:
45
+
46
+ ``` bash
47
+ vendor/bin/fractor process
39
48
```
40
49
41
50
Fractor will apply the rules specified in the configuration file to the targeted files.
42
51
43
52
Review the changes to ensure they meet your expectations.
44
-
45
-
0 commit comments