mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-25 00:20:41 -06:00
28 lines
793 B
PHP
28 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'],
|
|
),
|
|
],
|
|
|
|
];
|