mimmi20/device-detector-factory

View on GitHub
src/Module.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php
 
/**
* This file is part of the mimmi20/device-detector-factory package.
*
* Copyright (c) 2022-2025, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
 
declare(strict_types = 1);
 
namespace Mimmi20\Detector;
 
use Laminas\ModuleManager\Feature\ConfigProviderInterface;
use Override;
 
final class Module implements ConfigProviderInterface
{
/**
* Return default configuration for laminas-mvc applications.
*
* @return array<string, array<string, array<int|string, string>>>
* @phpstan-return array{service_manager: array{factories: array<class-string, class-string>}}
*
* @throws void
*/
#[Override]
public function getConfig(): array
{
$provider = new ConfigProvider();
 
return [
'service_manager' => $provider->getDependencyConfig(),
];
}
}