* Support TYPO3 v12.0
All dependencies are compatible now.
We can update to support v12.0.
This commit will shift TYPO3 support from 10 and 11 to 11 and 12.
See Changelog entry.
Update dev dependencies to our latest best practice.
Auto migrate code base to follow CGL and use PHP 7.4.
PHPStan was released with first stable public version 1.x.
The version is updated together with extensions.
The new version finds new issues which are solved right away to not
break CI.
This allows configuration via PHP.
It also combines code sniffer and php cs fixer.
Used commands:
composer remove --dev squizlabs/php_codesniffer
composer req --dev symplify/easy-coding-standard
./vendor/bin/ecs --fix
The existing query was not fully working as intended.
Also it did not work with proper MySQL sql_mode settings.
This is fixed by building a proper query which delivers expected and
deterministic results.
We now always have latest records first.
Also there is no need to fetch the sys_language_uid, as we only fetch
localized record if only one language is allowed. That way we can just
check configuration and use the configuration to do language overlay.
Also there was no need for an join, therefore query was reduced to
necessary stuff.
Relates: #35
BackendUtility::getRecordTitle might contain HTML tags like "span".
Those might result in broken rendering. As we don't need this markup
anyway, we remove it.
Allow integrator to limit results in widget to certain languages.
If only one language is allowed, labels will be translated.
Otherwise default system language is used.
E.g. one record will be displayed in multiple languages, it would be
confusing to show him multiple times for each language.
Add TYPO3 extension for phpstan as many things would break within tests.
Relates: #15
Extract operating system from user agent and store it in database
record.
Another widget is added which displays the page views per operating
system.
An command is provided which will update existing data.
10.4 introduced breaking changes for dashboard widgets.
The necessary changes to stay compatible are done within this commit.
No need anymore to configure widget through PHP, instead DI is used.
Instead only PHP to provide data is used.
2020-04-16 11:54:42 +02:00
Renamed from Classes/Dashboard/Widgets/PageViewsPerPageDoughnut.php (Browse further)