/** * get the stub file for the generator. * * @return string */abstract protected function getstub();//get the stub file for the generator/** * execute the console command. * * @return bool|null */public function fire()//execute the console command{ $name = $this->parsename($this->getnameinput());// $name use a function to parse it and use a function to get input name $path = $this->getpath($name);// from the name get path , if ($this->alreadyexists($this->getnameinput())) {// if know the name $this->error($this->type.' already exists!'); return false; }// tell the false messages $this->makedirectory($path);// make dir $this->files->put($path, $this->buildclass($name));// put file to the path $this->info($this->type.' created successfully.');// write log.}
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号