public function __construct($driver = 'console') { $class = '\\think\\console\\output\\driver\\' . ucwords($driver); $this->handle = new $class($this); }