src/Viserio/Component/Exception/Provider/ConsoleExceptionServiceProvider.php
public static function createExceptionHandler(ContainerInterface $container): ConsoleHandlerContract
    {
        $logger = null;

        if ($container->has(LoggerInterface::class)) {
            $logger = $container->get(LoggerInterface::class);
        }

        return new Handler($container->get('config'), $logger);
    }
public static function createExceptionHandler(ContainerInterface $container): ConsoleHandlerContract
    {
        $logger = null;

        if ($container->has(LoggerInterface::class)) {
            $logger = $container->get(LoggerInterface::class);
        }

        return new Handler($container->get('config'), $logger);
    }
Create a new Handler instance.

@param \Psr\Container\ContainerInterface $container

@return \Viserio\Component\Contract\Exception\ConsoleHandler