src/Leevel/View/Provider/Register.php
protected function viewParser(): void
    {
        $this->container->singleton('view.parser', function (IContainer $container) {
            return (new Parser($container['view.compiler']))
                ->registerCompilers()
                ->registerParsers();
        });
    }
protected function viewParser(): void
    {
        $this->container->singleton('view.parser', function (IContainer $container) {
            return (new Parser($container['view.compiler']))
                ->registerCompilers()
                ->registerParsers();
        });
    }
注册 view.parser 服务.