增加docke部署
This commit is contained in:
27
codes/agent/game-docker/api/source/apis/HelloWorld.php
Normal file
27
codes/agent/game-docker/api/source/apis/HelloWorld.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
use phprs\ezsql\Sql;
|
||||
class Message{
|
||||
public function __construct($msg){
|
||||
$this->msg = $msg;
|
||||
}
|
||||
public $msg;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @author caoym
|
||||
* @path("/hw")
|
||||
*/
|
||||
class HelloWorld
|
||||
{
|
||||
/**
|
||||
* @route({"GET","/"})
|
||||
*/
|
||||
public function doSomething1() {
|
||||
return new Message('Hello World!');
|
||||
}
|
||||
|
||||
/**
|
||||
* @property({"default":"@db"}) 注入pdo实例
|
||||
*/
|
||||
//private $db;
|
||||
}
|
||||
Reference in New Issue
Block a user