pocketmine\command\CommandReader::__construct PHP Méthode

__construct() public méthode

public __construct ( $logger )
    public function __construct($logger)
    {
        $this->stdin = fopen("php://stdin", "r");
        $opts = getopt("", ["disable-readline"]);
        if (extension_loaded("readline") && !isset($opts["disable-readline"]) && (!function_exists("posix_isatty") || posix_isatty($this->stdin))) {
            $this->readline = true;
        } else {
            $this->readline = false;
        }
        $this->logger = $logger;
        $this->buffer = new \Threaded();
        $this->start();
    }