ThinkPHP command line access controller!

create a server directory under the root directory with a server.php

in it.
$timer_id = swoole_timer_tick(2000, function ($timer_id) {
    echo "tick-2000ms\n";
    (new app\index\controller\Test())->index(time());
});

unexpectedly prompt: Class" appindexcontrollerTest" not found

how do I use it?

Mar.22,2021

is not loaded into the core of tptp and cannot be used directly to tp5 methods with namespaces.

Menu