Skip to content

Commit 49b4a54

Browse files
authored
Merge pull request #161 from andreaswolf/update-docs
[TASK] Update documentation
2 parents cb6f044 + 35ee58e commit 49b4a54

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ You can also skip some rules or files and folders. Do it the following way:
6666
<?php
6767

6868
use a9f\Fractor\Configuration\FractorConfiguration;
69+
use a9f\Typo3Fractor\Set\Typo3LevelSetList;
6970

7071
return FractorConfiguration::configure()
7172
->withPaths([__DIR__ . '/packages/'])

packages/typo3-fractor/README.md

+17-10
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,25 @@ Ease your TYPO3 upgrades by also automatically change TypoScript, YAML and Fluid
44

55
> [!WARNING]
66
> :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!
88
99
## Installation
1010

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:
1212

13-
```
13+
```bash
1414
composer require a9f/typo3-fractor --dev
1515
```
1616

1717
## 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.
1920

2021
```php
2122
<?php
22-
23-
use a9f\Fractor\DependencyInjection\FractorConfiguration;
23+
24+
use a9f\Fractor\Configuration\FractorConfiguration;
25+
use a9f\Typo3Fractor\Set\Typo3LevelSetList;
2426

2527
return FractorConfiguration::configure()
2628
->withPaths([__DIR__ . '/packages/'])
@@ -33,13 +35,18 @@ Have a look at all available rules [Overview of all rules](docs/typo3-fractor-ru
3335

3436
## Usage
3537

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
3742
```
38-
./vendor/bin/fractor process
43+
44+
and when you want to execute the migrations run:
45+
46+
```bash
47+
vendor/bin/fractor process
3948
```
4049

4150
Fractor will apply the rules specified in the configuration file to the targeted files.
4251

4352
Review the changes to ensure they meet your expectations.
44-
45-

0 commit comments

Comments
 (0)