Actions
Bug #90501
closedMissing `arguments` key in configuration example
Start date:
2020-02-23
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
docs, dashboard
Complexity:
Is Regression:
Sprint Focus:
Description
In the example of registering custom widgets for the new dashboard - in variant 1 - the `arguments` key is missing.
This leads to following error:
Too few arguments to function TYPO3\CMS\Dashboard\Widgets\AbstractRssWidget::__construct(), 0 passed in /var/www/html/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 3500 and exactly 1 expected
The example should be adjusted.
Updated by Gerrit Code Review over 4 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63386
Updated by Oliver Bartsch over 4 years ago
For version 2 also the arguments
keyword is needed. Otherwise
Symfony\Component\DependencyInjection\Exception\RuntimeException Cannot autowire service ...
is thrown.
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63386
Updated by Oliver Bartsch over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e4e5de2af1e56d75855ce4fb6413d41e4e2c224e.
Actions