當自定義support/helpers.php文件位置后,
workerman/webman-framework 包按裝插件走的是workerman/webman-framework內部的helpers.php
包代如下:
/**
* FindHelper.
* @return void
*/
protected static function findHelper()
{
// Plugin.php in vendor
$file = __DIR__ . '/../../../../../support/Helpers.php';
if (is_file($file)) {
require_once $file;
return;
}
// Plugin.php in webman
require_once __DIR__ . '/helpers.php';
}
require_once __DIR__ . '/helpers.php'; 會執(zhí)行失敗,因為包中沒有這個文件,下版本修復一下,謝謝
框架沒說允許自定義helper.php文件位置吧,我覺得框架也不會知道你helper.php在哪里
最重要的,我覺得不是什么東西都允許定制位置吧,今天你定制helper.php位置,明天他定制start.php位置,后天他定制controller目錄位置,model位置,啥東西都定制,那不亂套了,官方沒辦法定制所有東西啊
再說你定制helper.php位置有啥意義呢