UPGRADE.md 1.4 KB
Newer Older
Matthias Adrowski's avatar
Matthias Adrowski committed
1
## Version 5 Breaking Changes:
Fabio Stegmeyer's avatar
Fabio Stegmeyer committed
2

Matthias Adrowski's avatar
Matthias Adrowski committed
3
4
- Dropped TYPO3 9 Support
- Dropped php 7.3 Support
Fabio Stegmeyer's avatar
Fabio Stegmeyer committed
5

Matthias Adrowski's avatar
Matthias Adrowski committed
6
7
Instead of using an entity name for Plugin registration, we will use the corresponding
controller for registration, which will be added under classFQN key inside the Entity Configuration:
Fabio Stegmeyer's avatar
Fabio Stegmeyer committed
8

Matthias Adrowski's avatar
Matthias Adrowski committed
9
10
11
12
13
14
15
16
17
18
19
20
21
```php
$restRegistrationService->registerAccessGroup(
    'authentication',
    'SGalinski.sg_rest',
    'Authentication',
    [
       	'authentication' => [
       	    // Add THIS
            'classFQN' => \SGalinski\SgRest\Controller\Rest\Authentication\AuthenticationController::class,
            'read' => 'uid, title'
        ]
    ]
);
Fabio Stegmeyer's avatar
Fabio Stegmeyer committed
22
```
Matthias Adrowski's avatar
Matthias Adrowski committed
23
24
25
26
27
28
29
30
31
32
33
34
35

## Version 4 Breaking Changes:

- changed calling URL, either adapt your htaccess or your url.

OLD:
```apacheconf
RewriteRule ^api/v1/(.*) /index.php?type=1595576052&request=$1 [QSA]
```
NEW:
```apacheconf
RewriteRule ^api/v1/(.*) /index.php?type=1595576052&tx_sgrest[request]=$1 [QSA]
```
36

Matthias Adrowski's avatar
Matthias Adrowski committed
37
## Version 3 Breaking Changes
38

Matthias Adrowski's avatar
Matthias Adrowski committed
39
40
41
- Dropped TYPO3 9 support
- To optimize performance, the frontendUserRepository was dropped and repository-calls were replaced with direct $queries.
Hence, the $authenticatedUser variable used in Middlewares, Services and sometime REST-Controllers is now an array. Therefore using the variable as an object doesn't work any longer and needs to be adjusted in external extensions.
42

Matthias Adrowski's avatar
Matthias Adrowski committed
43
44
45
46
47
48
49
50
```
Example:

OLD:
$authenticatedUser->getAuthToken()

NEW:
$authenticatedUser['tx_sgrest_auth_token']
51
```