src/Viserio/Component/Profiler/Provider/ProfilerServiceProvider.php
public static function extendEventManager(
        ContainerInterface $container,
        ?EventManagerContract $eventManager = null
    ): ?EventManagerContract {
        if ($eventManager !== null) {
            $eventManager->attach(TerminableContract::TERMINATE, static function () use ($container): void {
                $container->get(ProfilerContract::class)->reset();
            });
        }

        return $eventManager;
    }
public static function extendEventManager(
        ContainerInterface $container,
        ?EventManagerContract $eventManager = null
    ): ?EventManagerContract {
        if ($eventManager !== null) {
            $eventManager->attach(TerminableContract::TERMINATE, static function () use ($container): void {
                $container->get(ProfilerContract::class)->reset();
            });
        }

        return $eventManager;
    }
Register profiler asset controllers.

@param \Psr\Container\ContainerInterface                    $container
@param null|\Viserio\Component\Contract\Events\EventManager $eventManager

@return null|\Viserio\Component\Contract\Events\EventManager