src/Module.php
<?php
/**
* This file is part of the mimmi20/laminasviewrenderer-helper-htmlelement package.
*
* Copyright (c) 2021-2024, 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\LaminasView\Helper\HtmlElement;
use Laminas\ModuleManager\Feature\ConfigProviderInterface;
final class Module implements ConfigProviderInterface
{
/**
* Return default configuration for laminas-mvc applications.
*
* @return array<string, array<string, array<string, string>>>
* @phpstan-return array{service_manager: array{factories: array<class-string, class-string>, aliases: array<class-string, class-string>}, view_helpers: array{factories: array<class-string, class-string>, aliases: array<string, class-string>}}
*
* @throws void
*/
public function getConfig(): array
{
$provider = new ConfigProvider();
return [
'service_manager' => $provider->getDependencyConfig(),
'view_helpers' => $provider->getViewHelperConfig(),
];
}
}