欧美一级色视频,簧片在线免费看,美日韩在线,成人观看网站a,亚洲欧美在线一区二区,欧美操穴,欧美综合专区

龍巖易富通網(wǎng)絡(luò)科技有限公司

龍巖小程序開發(fā),龍巖分銷系統(tǒng)

centos 定時執(zhí)行 think命令

2025.06.21 | 945閱讀 | 0條評論 | php

在TP5中自定義hello命令

<?php

    protected function configure()

    {

        $this->setName('hello')                      //定義命令的名字

        ->setDescription('This is my command')     //定義命令的描述

        ->addArgument('name')                      //增加一個名字參數(shù)

        ->addArgument('age');                      //增加一個年齡參數(shù)

    }


    protected function execute(Input $input, Output $output)

    {

        //獲取輸入的參數(shù)

        $name = $input->getArgument('name');

        $age = $input->getArgument('age');


        //輸出獲得的參數(shù)

        $output->writeln("My name is $name ,age is $age");

    }


centos定時執(zhí)行

* * * * *  php /path/to/your/project/think hello

贊 (

發(fā)表評論

乾安县| 长宁县| 平顺县| 鞍山市| 稻城县| 黑河市| 绥江县| 揭西县| 镇沅| 都匀市| 武安市| 遂宁市| 双桥区| 台山市| 沅江市| 千阳县| 乌鲁木齐市| 怀来县| 察隅县| 枣阳市| 绥宁县| 平乡县| 友谊县| 茌平县| 盘锦市| 田东县| 冷水江市| 庆安县| 郓城县| 青海省| 红原县| 曲麻莱县| 循化| 梧州市| 孟连| 大庆市| 汤阴县| 沙雅县| 封丘县| 岑溪市| 常宁市|