From 38a1ff526804b676fd8a2f16da632ff1bbbe26f5 Mon Sep 17 00:00:00 2001 From: Richard Haeser Date: Wed, 23 Sep 2020 20:01:22 +0200 Subject: [PATCH] [RELEASE] Release of 2.1.1 --- Classes/Command/CheckPageSpeedInsightsCommand.php | 10 +++++----- Documentation/Configuration/Index.rst | 4 ++-- ext_emconf.php | 2 +- ext_localconf.php | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Classes/Command/CheckPageSpeedInsightsCommand.php b/Classes/Command/CheckPageSpeedInsightsCommand.php index 141152c..30d1cda 100644 --- a/Classes/Command/CheckPageSpeedInsightsCommand.php +++ b/Classes/Command/CheckPageSpeedInsightsCommand.php @@ -47,21 +47,21 @@ public function execute(InputInterface $input, OutputInterface $output) $url = PageSpeedInsightsUtility::getUrlForPage($pid, $languageId); - $strategies = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['page_speed_insights']['strategies'] ?: ['performance', 'seo', 'accessibility', 'best-practices', 'pwa']; - $pageSpeedInsightsResultsMobile = PageSpeedInsightsUtility::checkUrl($url, 'mobile', $strategies, $reference, $pageId, $languageId, $pid, (string)$input->getArgument('key')); + $categories = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['page_speed_insights']['categories'] ?: ['performance', 'seo', 'accessibility', 'best-practices', 'pwa']; + $pageSpeedInsightsResultsMobile = PageSpeedInsightsUtility::checkUrl($url, 'mobile', $categories, $reference, $pageId, $languageId, $pid, (string)$input->getArgument('key')); if (array_key_exists('error', $pageSpeedInsightsResultsMobile)) { $errors = 10; $output->writeln('' . $row['uid'] . ': Check for ' . $url . ' failed for mobile. Error message: ' . $pageSpeedInsightsResultsMobile['error']['message'] . ''); } else { - $output->writeln($row['uid'] . ': ' . $row['slug'] . ': ' . $url . ' (' . implode(', ', $strategies) . ') succeeded for mobile'); + $output->writeln($row['uid'] . ': ' . $row['slug'] . ': ' . $url . ' (' . implode(', ', $categories) . ') succeeded for mobile'); } - $pageSpeedInsightsResultsDesktop = PageSpeedInsightsUtility::checkUrl($url, 'desktop', $strategies, $reference, $pageId, $languageId, $pid, (string)$input->getArgument('key')); + $pageSpeedInsightsResultsDesktop = PageSpeedInsightsUtility::checkUrl($url, 'desktop', $categories, $reference, $pageId, $languageId, $pid, (string)$input->getArgument('key')); if (array_key_exists('error', $pageSpeedInsightsResultsDesktop)) { $errors = 10; $output->writeln('' . $row['uid'] . ': Check for ' . $url . ' failed for desktop. Error message: ' . $pageSpeedInsightsResultsDesktop['error']['message'] . ''); } else { - $output->writeln($row['uid'] . ': ' . $row['slug'] . ': ' . $url . ' (' . implode(', ', $strategies) . ') succeeded for desktop'); + $output->writeln($row['uid'] . ': ' . $row['slug'] . ': ' . $url . ' (' . implode(', ', $categories) . ') succeeded for desktop'); } } diff --git a/Documentation/Configuration/Index.rst b/Documentation/Configuration/Index.rst index 8303d24..e3360dd 100644 --- a/Documentation/Configuration/Index.rst +++ b/Documentation/Configuration/Index.rst @@ -51,11 +51,11 @@ By default, your results are shown for mobile devices. If you want to view the r Only check specific strategies ------------------------------ -Sometimes you are just not interested in all strategies. By overriding :php:`$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['page_speed_insights']['strategies']` you can define which strategies should be checked. If you want to disable the check on PWA features, you just use the following lines of code. +Sometimes you are just not interested in all categories. By overriding :php:`$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['page_speed_insights']['categories']` you can define which categories should be checked. If you want to disable the check on PWA features, you just use the following lines of code. .. code-block:: php - $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['page_speed_insights']['strategies'] = [ + $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['page_speed_insights']['categories'] = [ 'performance', 'seo', 'accessibility', diff --git a/ext_emconf.php b/ext_emconf.php index b5b88db..81a1f8f 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -10,7 +10,7 @@ 'uploadfolder' => 0, 'createDirs' => '', 'clearCacheOnLoad' => 0, - 'version' => '2.1.0', + 'version' => '2.1.1', 'constraints' => [ 'depends' => [ 'typo3' => '9.5.0 - 10.4.99' diff --git a/ext_localconf.php b/ext_localconf.php index 9e0de38..38f4e94 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -28,7 +28,7 @@ ); } - $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['page_speed_insights']['strategies'] = [ + $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['page_speed_insights']['categories'] = [ 'performance', 'seo', 'accessibility',