#!/usr/bin/env php # 這里,在頭部增加此行。并重命名 start.php 為 webman 或者 start
<?php
require_once __DIR__ . '/vendor/autoload.php';
<...>
是的,webman有命令行組件,composer require webman/console
后會(huì)自動(dòng)生成一個(gè) webman 可執(zhí)行文件??梢詧?zhí)行 ./webman start
等命令。
已修改。目前看start.php 不會(huì)和webman直接整合,因?yàn)楹芏嚅_發(fā)者在用了,修改啟動(dòng)方式會(huì)引起很多不必要的詢問。