如題,例如在app/command/Sites/下面創(chuàng)建新的command, 執(zhí)行 php webman會(huì)被列出來(lái)。 但是當(dāng)在app/command/Sites/Cache/下創(chuàng)建一個(gè)新的Command的時(shí)候,執(zhí)行php webman不會(huì)被列出來(lái),也無(wú)法執(zhí)行。...
webman中如何知道我是否在 “CLI”下。 我在webman中,引入了webman/console。我需要在Logger中區(qū)分是console調(diào)用了還是app/controller中調(diào)用了。 眾所周知,我無(wú)法通過(guò) php_sapi_name() == 'cli' 來(lái)判定。 我該如何知道當(dāng)前是Console還是Controller...