改名
This commit is contained in:
@@ -61,6 +61,7 @@ namespace {$namespace};
|
||||
|
||||
use Snowflake;
|
||||
use exception;
|
||||
use Annotation\Target;
|
||||
use Snowflake\Core\Str;
|
||||
use Snowflake\Core\JSON;
|
||||
use HttpServer\Http\Request;
|
||||
@@ -82,7 +83,7 @@ use {$model_namespace}\\{$managerName};
|
||||
*
|
||||
* @package controller
|
||||
*/
|
||||
class {$controllerName}Controller extends Controller
|
||||
#[Target] class {$controllerName}Controller extends Controller
|
||||
{
|
||||
|
||||
";
|
||||
|
||||
+2
-1
@@ -70,6 +70,7 @@ class GiiModel extends GiiBase
|
||||
namespace ' . $namespace . ';
|
||||
|
||||
use Exception;
|
||||
use Annotation\Target;
|
||||
use Snowflake\Core\JSON;
|
||||
use Database\Connection;
|
||||
use Database\ActiveRecord;';
|
||||
@@ -90,7 +91,7 @@ use Database\ActiveRecord;';
|
||||
*' . implode('', $this->visible) . '
|
||||
* @sql
|
||||
*/
|
||||
class ' . $managerName . ' extends ActiveRecord
|
||||
#[Target] class ' . $managerName . ' extends ActiveRecord
|
||||
{';
|
||||
|
||||
if (!empty($class)) {
|
||||
|
||||
@@ -33,6 +33,8 @@ abstract class Callback extends HttpService
|
||||
protected function clear($server, $worker_id, $message)
|
||||
{
|
||||
try {
|
||||
Timer::clearAll();
|
||||
|
||||
fire(Event::SYSTEM_RESOURCE_CLEAN);
|
||||
|
||||
\logger()->insert();
|
||||
|
||||
@@ -274,9 +274,6 @@ abstract class Pool extends Component
|
||||
*/
|
||||
public function clean(string $name)
|
||||
{
|
||||
if ($this->creates > -1 && Timer::exists($this->creates)) {
|
||||
Timer::clear($this->creates);
|
||||
}
|
||||
if (!Context::inCoroutine() || !isset($this->_items[$name])) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -76,8 +76,6 @@ class ErrorHandler extends Component implements ErrorInterface
|
||||
{
|
||||
$this->category = 'exception';
|
||||
|
||||
var_dump($exception);
|
||||
|
||||
$event = Snowflake::app()->getEvent();
|
||||
$event->trigger(Event::SYSTEM_RESOURCE_CLEAN);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user