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
Copy file name to clipboardExpand all lines: migrations/53-54/new-deprecations.md
+39-15Lines changed: 39 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -6,46 +6,70 @@ New Deprecations
6
6
================
7
7
8
8
:::tip[Developer Note]
9
-
Since this version of Joomla has not been released yet, this page can change anytime.
9
+
This version of Joomla has not yet been released, so this page is subject to change at any time.
10
+
Deprecations added up to and including version 5.4.0-alpha3 are listed below.
10
11
:::
11
12
12
13
All the new deprecations you should be aware of — and what you should use instead.
13
14
14
-
## Class deprecations
15
+
## Class Deprecations
15
16
16
17
Planned to be removed in Joomla! 7.0.
17
18
18
-
### Deprecation of UCM system
19
-
In Joomla 3.2, the `Unified Content Model` was introduced, which was supposed to be a universal system for all content in Joomla. The concept turned out to be not viable and the remnants of this have now been deprecated for removal in Joomla 7.0. The following classes have been deprecated without replacement:
19
+
### Deprecation of UCM System
20
+
21
+
In Joomla 3.2, the Unified Content Model (UCM) was introduced, which was supposed to be a universal system for all content in Joomla. The concept turned out to be not viable and the remnants of this have now been deprecated for removal in Joomla 7.0. The following classes have been deprecated without replacement:
20
22
21
23
-`Joomla\CMS\Table\Ucm`
22
24
-`Joomla\CMS\UCM\UCM`
23
25
-`Joomla\CMS\UCM\UCMBase`
24
26
-`Joomla\CMS\UCM\UCMContent`
25
27
-`Joomla\CMS\UCM\UCMType`
26
28
27
-
Related PR: https://github.com/joomla/joomla-cms/pull/44910
29
+
Related PR: [44910](https://github.com/joomla/joomla-cms/pull/44910) – Deprecating UCM code
30
+
31
+
### Random Image Module
32
+
33
+
[45648](https://github.com/joomla/joomla-cms/pull/45648) – Convert mod_random_image to service provider
34
+
35
+
- ❌ Avoid using the `getRandomImage()` static method.
36
+
- ✅ Instead use the non-static `getImage()` method.
37
+
- ❌ Avoid using the `getImages()` static method.
38
+
- ✅ Instead use the non-static `getImagesFromFolder()` method.
39
+
- ❌ Avoid using the `getFolder()` static method.
40
+
- ✅ Instead use the non-static `getSanitizedFolder()` method.
28
41
29
-
## Deprecation of `registerListeners()`
42
+
###Deprecation of `registerListeners()`
30
43
[43395](https://github.com/joomla/joomla-cms/pull/43395) – CMSPlugin: deprecation for registerListeners
31
44
32
45
- ❌ `registerListeners()` is deprecated in both `Joomla\CMS\Extension\PluginInterface` and `Joomla\CMS\Plugin\CMSPlugin`.
33
-
- ✅ Instead, implement the `SubscriberInterface`. The method is no longer required in this case.
46
+
- ✅ Instead, implement the `SubscriberInterface`. The method is no longer required in this case.
34
47
35
-
## Deprecation of `$_db`, `getDbo()`, and `setDbo()`
48
+
###Deprecation of `$_db`, `getDbo()`, and `setDbo()`
36
49
[45165](https://github.com/joomla/joomla-cms/pull/45165) – Replace table _db with DatabaseAwareTrait
37
50
38
51
- ❌ Do not access the `Joomla\CMS\Table\Table::_db` property directly — it will be removed in the future.
39
52
- ❌ Avoid using the `getDbo()` and `setDbo()` methods — they will also be removed.
40
-
- ✅ Use **`getDatabase()`** and **`setDatabase()`** instead.
53
+
- ✅ Use `getDatabase()` and `setDatabase()` instead.
41
54
Sample:
42
-
```php
43
-
$db = $this->getDatabase();
44
-
$this->setDatabase($db);
45
-
```
55
+
```php
56
+
$db = $this->getDatabase();
57
+
$this->setDatabase($db);
58
+
```
46
59
47
60
## Language String Deprecation
48
61
49
-
Planned to be removed in Joomla! 6.0 is the language string:
62
+
Planned to be removed in Joomla! 6.0 are the language keys:
50
63
* [45564](https://github.com/joomla/joomla-cms/pull/45564) – Deprecate language string
0 commit comments