mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-30 19:36:40 +03:00
27 lines
793 B
PHP
27 lines
793 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Rest;
|
|
|
|
use Laminas\ServiceManager\AbstractFactory\ConfigAbstractFactory;
|
|
use Laminas\Stdlib\ArrayUtils\MergeReplaceKey;
|
|
use Shlinkio\Shlink\Common\Middleware\AccessLogMiddleware;
|
|
|
|
return [
|
|
|
|
'access_logs' => [
|
|
'ignored_path_prefixes' => [
|
|
Action\HealthAction::ROUTE_PATH,
|
|
],
|
|
],
|
|
|
|
// This config needs to go in this file in order to override the value defined in shlink-common
|
|
ConfigAbstractFactory::class => [
|
|
// Use MergeReplaceKey to overwrite what was defined in shlink-common, instead of merging it
|
|
AccessLogMiddleware::class => new MergeReplaceKey(
|
|
[AccessLogMiddleware::LOGGER_SERVICE_NAME, 'config.access_logs.ignored_path_prefixes'],
|
|
),
|
|
],
|
|
|
|
];
|