first commit
This commit is contained in:
20
Swoft_BackEndApi/app/Http/Controller/BaseController.php
Normal file
20
Swoft_BackEndApi/app/Http/Controller/BaseController.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace App\Http\Controller;
|
||||
|
||||
use BmobObject;
|
||||
use Swoft\Bean\Annotation\Mapping\Inject;
|
||||
use App\Bean\ResponseBean;
|
||||
|
||||
abstract class BaseController {
|
||||
/**
|
||||
* @Inject("ResponseBean")
|
||||
*/
|
||||
protected $response;
|
||||
|
||||
protected function newBmobObject(string $tabeName = '') {
|
||||
return new BmobObject($tabeName);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user