Bug #90501

Missing `arguments` key in configuration example

Added by Oliver Bartsch over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Category:
Dashboard
Target version:
-
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.

#1

Updated by Gerrit Code Review over 1 year 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

#2

Updated by Oliver Bartsch over 1 year ago

For version 2 also the arguments keyword is needed. Otherwise

Symfony\Component\DependencyInjection\Exception\RuntimeException
Cannot autowire service ...

is thrown.

#3

Updated by Gerrit Code Review over 1 year 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

#4

Updated by Oliver Bartsch over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#5

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF