public static function createApp(string $environment = 'dev', Dictionary $props = null)
    {
        $container = new Container();
        $kernel = new Kernel($environment, $container);
        $handlerResolver = new HandlerResolver($container);
        $props = $props ?? new PropertiesBag();
        return new Application(
            $kernel,
            $handlerResolver,
            $props
        );
    }