mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 11:48:08 +08:00
Move SwooleEvent
This commit is contained in:
parent
955da41b8e
commit
d753472138
@ -26,9 +26,8 @@ class Model extends BaseModel
|
||||
*/
|
||||
public function getConnection(): ConnectionInterface
|
||||
{
|
||||
$connectionName = $this->getConnectionName();
|
||||
$resolver = ApplicationContext::getContainer()->get(ConnectionResolver::class);
|
||||
return $resolver->connection($connectionName);
|
||||
return $resolver->connection($this->getConnectionName());
|
||||
}
|
||||
|
||||
public function getEventDispatcher()
|
||||
|
@ -11,7 +11,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Hyperf\Framework\Bootstrap;
|
||||
|
||||
use Hyperf\Framework\Constants\SwooleEvent;
|
||||
use Hyperf\Framework\SwooleEvent;
|
||||
use Hyperf\Memory;
|
||||
|
||||
class ServerStartCallback
|
||||
|
@ -12,7 +12,7 @@ declare(strict_types=1);
|
||||
namespace Hyperf\Framework\Bootstrap;
|
||||
|
||||
use Hyperf\Di\Container;
|
||||
use Hyperf\Framework\Constants\SwooleEvent;
|
||||
use Hyperf\Framework\SwooleEvent;
|
||||
use Hyperf\Framework\Contract\StdoutLoggerInterface;
|
||||
use Hyperf\Memory\AtomicManager;
|
||||
use Hyperf\Memory\LockManager;
|
||||
|
@ -13,7 +13,6 @@ namespace Hyperf\Framework;
|
||||
|
||||
use Hyperf\Contract\ProcessInterface;
|
||||
use Hyperf\Contract\ServerOnRequestInterface;
|
||||
use Hyperf\Framework\Constants\SwooleEvent;
|
||||
use Hyperf\Framework\Contract\StdoutLoggerInterface;
|
||||
use InvalidArgumentException;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
@ -9,7 +9,7 @@ declare(strict_types=1);
|
||||
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Framework\Constants;
|
||||
namespace Hyperf\Framework;
|
||||
|
||||
class SwooleEvent
|
||||
{
|
Loading…
Reference in New Issue
Block a user