You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Changes all instances of `Crm\ApiModule\Api\JsonResponse` to `Tomaj\NetteApi\Response\JsonApiResponse`.
96
+
to:
97
97
98
-
_Note: Both these rules are part of sets `CRM_1_0` and `CRM_1_0_WITHOUT_NETTE`. These are created as individual rules because Rector's general rules were not sufficient. We recommend running whole set._
98
+
```php
99
+
#[\Nette\DI\Attributes\Inject]
100
+
public Crm\UsersModule\Repositories\UsersRepository $usersRepository;
101
+
```
102
+
103
+
Fixes also `persistent` and `crossOrigin`.
99
104
100
105
### Transform to lazy event listeners
101
106
@@ -115,3 +120,27 @@ _Note: Both these rules are part of sets `CRM_1_0` and `CRM_1_0_WITHOUT_NETTE`.
115
120
CrmSetList::CRM_3_0_PSR4,
116
121
]);
117
122
```
123
+
124
+
---
125
+
126
+
### \[ARCHIVED\] Upgrade CRM v0.38 -> CRM v1.0
127
+
128
+
> ℹ️ We are not maintaining this set anymore. Set & rules were removed. Last release with working rules is https://github.com/remp2020/crm-rector/releases/tag/1.2.0.
129
+
130
+
Check also the [CRM 1.0 migration guide](https://github.com/remp2020/crm-application-module/blob/master/MIGRATION.md).
- Changes all instances of `Crm\ApiModule\Api\JsonResponse` to `Tomaj\NetteApi\Response\JsonApiResponse`.
145
+
146
+
_Note: Both these rules are part of sets `CRM_1_0` and `CRM_1_0_WITHOUT_NETTE`. These are created as individual rules because Rector's general rules were not sufficient. We recommend running whole set._
0 commit comments