Skip to content

Commit

Permalink
Merge branch 'main' into view/db
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo authored Apr 4, 2024
2 parents 53fa8db + b4b6b9f commit 4ec753a
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 200 deletions.
4 changes: 2 additions & 2 deletions migrations/44-50/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Most of the code deprecated in Joomla! 3.x has been removed. Some deprecations h
to the [Compatibility Plugin](compat-plugin.md).

# Replacement of Factory::getUser
`Factory::getUser()` is deprecated since Joomla 4.0. To replace it, models, views, form fields and tables can implement the `CurrentUserInterface` and then is the currently logged in user available through `$this->getCurrentUser()`.
`Factory::getUser()` is deprecated since Joomla 4.0. To replace it, models, views, form fields and tables can implement the `CurrentUserInterface` and then the currently logged in user is available through `$this->getCurrentUser()`.

In 5.0 are all the template files (default.php) changed from `Factory::getUser()` to `$this->getCurrentUser()`.
In 5.0 all the template files (default.php) have been changed from `Factory::getUser()` to `$this->getCurrentUser()`.


:::caution TODO
Expand Down
13 changes: 10 additions & 3 deletions migrations/54-60/removed-backward-incompatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@ There should be an explanation of how to mitigate the removals / changes.

### CMS Input object switched to Framework Input object

- PR: https://github.com/joomla/joomla-cms/pull/42805
- Description: The CMS Input object `\Joomla\CMS\Input` has been deprecated since Joomla 4.3. The CMS core code has switched the code to the Framework Input object `\Joomla\Input`, which is very much a drop-in replacement. This is especially of relevance if you are using the MVC classes, which now use the framework class. Make sure that your code imports the correct class.
-
- PR's:
- https://github.com/joomla/joomla-cms/pull/42805
- https://github.com/joomla/joomla-cms/pull/42890
- Description: The CMS Input namespace `\Joomla\CMS\Input` has been removed. The CMS core code has switched the code to the Framework Input library with the namespace `\Joomla\Input`, which is very much a drop-in replacement. This is especially of relevance if you are using the MVC classes, which now use the framework class. Make sure that your code imports the correct class.

### CMS BaseApplication and CLI classes have been removed

- PR: https://github.com/joomla/joomla-cms/pull/42884
- Description: The class `\Joomla\CMS\Application\BaseApplication` and `\Joomla\CMS\Application\CliApplication` respective CLI input classes have been removed. The CMS core code has been switched to use the Application package of the Joomla Framework. Any reference to these classes should be replaced with the namespace `\Joomla\Application`. Cli apps should be replaced by console plugins.

### View classes do not have a database reference

- PR: https://github.com/joomla/joomla-cms/pull/42962
Expand Down
Loading

0 comments on commit 4ec753a

Please sign in to comment.