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