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
16 changes: 16 additions & 0 deletions updates/64-70/new-deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,19 @@ $plugin = new Foo(
$container->get(DatabaseInterface::class)
);
$plugin->setApplication(Factory::getApplication());
```

## The captcha form field uses the captcha registry
- PR: https://github.com/joomla/joomla-cms/pull/47906
- Files:
- /libraries/src/Captcha/Captcha.php
- /libraries/src/Form/Field/CaptchaField.php
- /libraries/src/Form/Rule/CaptchaRule.php
- Description: The `Captcha` class got deprecated as the captcha registry should be used:
```php
// Old:
Captcha::getInstance($plugin, ['namespace' => $namespace]);

// New:
Factory::getContainer()->get(CaptchaRegistry::class)->get($plugin);
```