Issue Bug Closed

#86719Adminpanel SubModuleRenderViewHelper throws exception while not implementing ContentProviderInterface

Jan Stockfisch 10/23/18, 10:54 updated 05/07/19, 12:15

Description

Currently while not implementing a ContentProviderInterface and therfore not implementing method `getContent()` throws an InvalidArgumentException: `The argument “module” was registered with type “TYPO3\CMS\Adminpanel\ModuleApi\ContentProviderInterface”, but is of type “Psychomieze\AdminpanelExtended\Modules\Info\InternalContentObjects” in view helper “TYPO3\CMS\Adminpanel\ViewHelpers\SubModuleRenderViewHelper”.`.
This happens only right after all caches have been cleared.
Using “warmed up” caches will throw `Call to undefined method Psychomieze\AdminpanelExtended\Modules\Info\InternalContentObjects::getContent()`

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.