Skip to content

Commit

Permalink
Small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasnorre committed Mar 7, 2024
1 parent b8089f4 commit ebe0fd5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .devbox/.ddev/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
/mutagen/.start-synced
/nginx_full/nginx-site.conf
/postgres/postgresql.conf
/providers/acquia.yaml
/providers/lagoon.yaml
/providers/platform.yaml
/providers/upsun.yaml
/sequelpro.spf
/settings/settings.ddev.py
/traefik/config/crawler-devbox.yaml
Expand Down
2 changes: 1 addition & 1 deletion .devbox/config/system/additional.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
'processor_path' => '/usr/bin/',
'processor_path_lzw' => '/usr/bin/',
],
// This mail configuration sends all emails to mailhog
// This mail configuration sends all emails to mailpit
'MAIL' => [
'transport' => 'smtp',
'transport_smtp_encrypt' => false,
Expand Down
9 changes: 8 additions & 1 deletion Classes/Utility/HookUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
*/

use AOE\Crawler\Hooks\ProcessCleanUpHook;
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Core\Http\ApplicationType;

/**
* @codeCoverageIgnore
Expand All @@ -42,7 +44,12 @@ public static function registerHooks($extKey): void
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extKey]['refresh_hooks'][] =
ProcessCleanUpHook::class;

self::registerBackendHooks();
// Env-dependent
if (($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface
&& ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()
) {
self::registerBackendHooks($extKey);

Check failure on line 51 in Classes/Utility/HookUtility.php

View workflow job for this annotation

GitHub Actions / PHPstan

Static method AOE\Crawler\Utility\HookUtility::registerBackendHooks() invoked with 1 parameter, 0 required.
}
}

private static function registerBackendHooks(): void
Expand Down

0 comments on commit ebe0fd5

Please sign in to comment.