haassie / ext-page-speed-insights

TYPO3 extension to check your pages with PageSpeed Insights API. Providing scores on performance, SEO, accessibility, best-practices and PWA.
GNU General Public License v3.0
7 stars 7 forks source link

Feature Request: either require EXT:dashboard or check of EXT:dashboard is present #22

Open peterkraume opened 2 years ago

peterkraume commented 2 years ago

After an upgrade from TYPO3 v9.5 with EXT:page_speed_insights 2.1 to TYPO3 11.5 and EXT:page_speed_insights 3.0 I ended up with this error message:

Invalid service "dashboard.widget.lighthouse.accessibilityScore": class "TYPO3\CMS\Dashboard\Widgets\WidgetInterface" not found while loading "Haassie\PageSpeedInsights\Widgets\LighthouseScoreWidget".

So I would like to suggest to either require EXT:dashboard in composer.json or to do a check if EXT:dashboard is loaded (e.g. like here: https://github.com/georgringer/doc/blob/master/Configuration/Services.php