Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions updates/64-70/new-deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,17 @@ $plugin = new Foo(
$container->get(DatabaseInterface::class)
);
$plugin->setApplication(Factory::getApplication());
```

## Installer getInstance is deprecated
- PR: https://github.com/joomla/joomla-cms/pull/47980
- File: /libraries/src/Installer/Installer.php
- Description: The `getInstance` function of the installer class is now deprecated due some caching issues when installing multiple instances at once. Please instantiate always a new installer:
```php
// Old:
$installer = Installer::getInstance();

// New:
$installer = new Installer();
$installer->setDatabase($this->getDatabase());
```