\Hyperf\ViewEngine\HyperfViewEngine::class, 'mode' => \Hyperf\View\Mode::TASK, 'config' => [ 'view_path' => BASE_PATH . '/storage/view/', 'cache_path' => BASE_PATH . '/runtime/view/', ], 'components' => [ 'smarty' => [ 'class' => \App\View\Engine\SmartyEngine::class, 'constructor' => [ 'options' => [ 'left_delimiter' => '{{', 'right_delimiter' => '}}', 'compile_dir' => BASE_PATH . '/runtime/smarty/compile/', 'cache_dir' => BASE_PATH . '/runtime/smarty/cache/', 'template_dir' => BASE_PATH . '/storage/view/', ], ], ], ], 'composers' => [ \App\View\Composers\GlobalComposer::class, ], ];