Project

General

Profile

Actions

Bug #90501

closed

Missing `arguments` key in configuration example

Added by Oliver Bartsch about 4 years ago. Updated about 4 years 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.

Actions #1

Updated by Gerrit Code Review about 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

Actions #2

Updated by Oliver Bartsch about 4 years ago

For version 2 also the arguments keyword is needed. Otherwise

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

is thrown.

Actions #3

Updated by Gerrit Code Review about 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

Actions #4

Updated by Oliver Bartsch about 4 years ago

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

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF