diff --git a/publish/view.php b/publish/view.php index 100613e..7fc7bf1 100644 --- a/publish/view.php +++ b/publish/view.php @@ -9,15 +9,14 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ +use Hyperf\View\Engine\NoneEngine; use Hyperf\View\Mode; -use Hyperf\ViewEngine\HyperfViewEngine; return [ - 'engine' => HyperfViewEngine::class, + 'engine' => NoneEngine::class, 'mode' => Mode::SYNC, 'config' => [ 'view_path' => BASE_PATH . '/storage/view/', 'cache_path' => BASE_PATH . '/runtime/view/', - 'charset' => 'UTF-8', ], ]; diff --git a/src/Engine/NoneEngine.php b/src/Engine/NoneEngine.php new file mode 100644 index 0000000..bad2fa5 --- /dev/null +++ b/src/Engine/NoneEngine.php @@ -0,0 +1,57 @@ + + +
+ + + +Hyperf is an extremely performant and flexible PHP CLI framework based on Swoole 4.5+, powered by the + state-of-the-art coroutine server and a large number of battle-tested components. Aside from the decisive + benchmark outmatching against PHP-FPM frameworks, Hyperf also distinct itself by its focus on flexibility + and composability. Hyperf ships with an AOP-enabling dependency injector to ensure components and classes + are pluggable and meta programmable. All of its core components strictly follow the PSR standards and thus + can be used in other frameworks.
+ +This view engine is not available, please use engines below.
+ +