src/Viserio/Component/Profiler/Provider/ProfilerServiceProvider.php
public function getFactories(): array
    {
        return [
            AssetsRenderer::class   => [self::class, 'createAssetsRenderer'],
            ProfilerContract::class => [self::class, 'createProfiler'],
            Profiler::class         => static function (ContainerInterface $container) {
                return $container->get(ProfilerContract::class);
            },
            Stopwatch::class => static function () {
                return new Stopwatch();
            },
        ];
    }
public function getFactories(): array
    {
        return [
            AssetsRenderer::class   => [self::class, 'createAssetsRenderer'],
            ProfilerContract::class => [self::class, 'createProfiler'],
            Profiler::class         => static function (ContainerInterface $container) {
                return $container->get(ProfilerContract::class);
            },
            Stopwatch::class => static function () {
                return new Stopwatch();
            },
        ];
    }
{@inheritdoc}