Hide webhook elements when sandbox state is not matching the server

This commit is contained in:
Alex P 2023-03-10 10:39:13 +02:00
parent 8188faeec4
commit 9adcfe4b7d
No known key found for this signature in database
GPG key ID: 54487A734A204D71
3 changed files with 41 additions and 6 deletions

View file

@ -167,7 +167,8 @@ return array(
'webhook.status.assets' => function( ContainerInterface $container ) : WebhooksStatusPageAssets {
return new WebhooksStatusPageAssets(
$container->get( 'webhook.module-url' ),
$container->get( 'ppcp.asset-version' )
$container->get( 'ppcp.asset-version' ),
$container->get( 'onboarding.environment' )
);
},