# Zhamao Framework: src/entry.php 文件参考

entry.php 文件参考

## 变量

if(DIRECTORY_SEPARATOR==='\\') | try

## 变量说明

## try

if (DIRECTORY_SEPARATOR==='\\') try

初始值:
{
(new ZM\ConsoleApplication('zhamao-framework'))->run()
ZM\Exception\PluginException
Definition: PluginException.php:10
ZM\Annotation\AnnotationParser\parse
parse(array $path)
Definition: AnnotationParser.php:74
ZM\Utils\ZMUtil
Definition: ZMUtil.php:7
ZM\Middleware\MiddlewareHandler
Definition: MiddlewareHandler.php:10
ZM\Annotation\AnnotationParser\parseSpecial
parseSpecial($annotation, $same_method_annotations=null)
Definition: AnnotationParser.php:239
ZM\Utils\CatCode\encode
static encode(\Stringable|int|string $msg, bool $is_content=false)
Definition: CatCode.php:43
ZM\Container\$build_stack
array $build_stack
Definition: ContainerTrait.php:18
ZM\Store\Database\DBConnection\errorInfo
errorInfo()
Definition: DBConnection.php:117
ZM\Store\Database\DBConnection\prepare
prepare($sql, $options=[])
Definition: DBConnection.php:37
ZM\Container\ContainerInterface
Definition: ContainerInterface.php:14
ZM\Middleware\MiddlewareHandler\process
process(callable $callback,... $args)
Definition: MiddlewareHandler.php:137
ZM\Store\Database\DBWrapper\isTransactionActive
isTransactionActive()
Definition: DBWrapper.php:109
ZM\Config\ZMConfig\getHolder
getHolder()
Definition: ZMConfig.php:239
ZM\Store\Database\DBConnection\beginTransaction
beginTransaction()
Definition: DBConnection.php:97
ZM\Container\flush
flush()
Definition: ContainerTrait.php:218
ZM\Store\Database\DBStatementWrapper\__construct
__construct(public ?Result $stmt)
Definition: DBStatementWrapper.php:17
ZM\Utils\ConnectionUtil\removeConnection
static removeConnection(int $fd)
Definition: ConnectionUtil.php:65
ZM\Middleware\MiddlewareHandler\$stack
array $stack
Definition: MiddlewareHandler.php:27
ZM\Utils\HttpUtil
Definition: HttpUtil.php:22
ZM\Context\BotContext\getEvent
getEvent()
Definition: BotContext.php:32
ZM\Bootstrap\HandleExceptions\bootstrap
bootstrap(array $config)
Definition: HandleExceptions.php:12
ZM\Store\Database\DBStatement\current
current()
Definition: DBStatement.php:108
logger
logger()
Definition: global_functions.php:90
ZM_PROCESS_TASKWORKER
const ZM_PROCESS_TASKWORKER
Definition: global_defines_app.php:26
ZM\Config\ZMConfig\ALLOWED_FILE_EXTENSIONS
const ALLOWED_FILE_EXTENSIONS
Definition: ZMConfig.php:19
FALSE_LIST
const FALSE_LIST
Definition: global_defines_app.php:19
ZM\Store\Database\DBPool
Definition: DBPool.php:17
ZM\Plugin\ZMPlugin\addHttpRoute
addHttpRoute(Route $route)
Definition: ZMPlugin.php:56
ZM\Plugin\ZMPlugin\$bot_commands
array $bot_commands
Definition: ZMPlugin.php:23
ZM\Store\Database\DBPool\destroyPool
static destroyPool(string $name)
Definition: DBPool.php:96
ZM\Store\Database\DBWrapper\lastInsertId
lastInsertId(?string $name=null)
Definition: DBWrapper.php:436
ZM\Store\Database\DBWrapper\iterateNumeric
iterateNumeric(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:288
ZM\Command\Server\ServerStartCommand\exportOptionArray
static exportOptionArray()
Definition: ServerStartCommand.php:20
ZM\Annotation\AnnotationHandler\setReturnCallback
setReturnCallback(callable $return)
Definition: AnnotationHandler.php:75
ZM\Event\EventProvider\getListenersForEvent
getListenersForEvent(object $event)
Definition: EventProvider.php:67
ZM\Framework\init
init()
Definition: Framework.php:92
ZM\Exception\InvalidArgumentException\__construct
__construct($message='', $code=0, \Throwable $previous=null)
Definition: InvalidArgumentException.php:9
ZM\Annotation\AnnotationHandler\getStatus
getStatus()
Definition: AnnotationHandler.php:157
ZM\Store\Database\SQLiteDriver\getDatabasePlatform
getDatabasePlatform()
Definition: SQLiteDriver.php:19
ZM\Store\Database\DBConnection\lastInsertId
lastInsertId($name=null)
Definition: DBConnection.php:88
ZM\Annotation\Http\Route\make
static make($route, $name='', $request_method=['GET', 'POST'], $params=[])
Definition: Route.php:36
ZM\Event\Listener\WSEventListener
Definition: WSEventListener.php:18
ZM\Annotation\OneBot\BotAction\getLevel
getLevel()
Definition: BotAction.php:24
ZM\Command\BuildCommand\configure
configure()
Definition: BuildCommand.php:21
ZM\Event\EventProvider\addEventListener
addEventListener($event, callable $callback, int $level=20)
Definition: EventProvider.php:29
zm_instance_id
zm_instance_id()
Definition: global_functions.php:74
ZM\Command\ProxyServerCommand\onSocksMessage
onSocksMessage($connection, $buffer)
Definition: ProxyServerCommand.php:23
ZM\Annotation\OneBot\CommandArgument\getErrorQuitPrompt
getErrorQuitPrompt()
Definition: CommandArgument.php:70
ZM\Annotation\AnnotationBase\isInGroup
isInGroup(string $name)
Definition: AnnotationBase.php:54
ZM\Bootstrap\RegisterEventProvider\bootstrap
bootstrap(array $config)
Definition: RegisterEventProvider.php:11
ZM\Store\Database\DBStatementWrapper\fetchAllKeyValue
fetchAllKeyValue()
Definition: DBStatementWrapper.php:113
ZM\Utils\CatCode\fromSegment
static fromSegment(mixed $message_segment)
Definition: CatCode.php:14
ZM\Store\Database\DBWrapper\releaseSavepoint
releaseSavepoint(string $savepoint)
Definition: DBWrapper.php:533
ZM\Annotation\Interfaces\Level\getLevel
getLevel()
ZM\Container\make
make(string $abstract, array $parameters=[])
Definition: ContainerTrait.php:242
ZM\Annotation\Interfaces
Definition: CustomAnnotation.php:5
ZM\Annotation\AnnotationMap\$_map
static array $_map
Definition: AnnotationMap.php:28
ZM\Exception\OneBot12Exception
Definition: OneBot12Exception.php:7
ZM\Exception\InvalidArgumentException
Definition: InvalidArgumentException.php:7
ZM\Event\Listener\WSEventListener\onWebSocketMessage
onWebSocketMessage(WebSocketMessageEvent $event)
Definition: WSEventListener.php:45
ZM\Exception\ConfigException
Definition: ConfigException.php:7
ZM\Event\Listener
Definition: HttpEventListener.php:5
ZM\Store\Database\DBStatement\setFetchMode
setFetchMode($fetchMode, $arg2=null, $arg3=[])
Definition: DBStatement.php:30
ZM\Store\Database\DBWrapper\insert
insert(string $table, array $data, array $types=[])
Definition: DBWrapper.php:163
ZM\Annotation\OneBot\BotEvent\getLevel
getLevel()
Definition: BotEvent.php:36
ZM\Annotation\OneBot\BotEvent\make
static make(?string $type=null, ?string $detail_type=null, ?string $sub_type=null, int $level=20,)
Definition: BotEvent.php:27
ZM\Annotation\AnnotationHandler\STATUS_BEFORE_FAILED
const STATUS_BEFORE_FAILED
Definition: AnnotationHandler.php:20
ZM\Store\Lock\FileLock\lock
static lock(string $name)
Definition: FileLock.php:20
ZM\Middleware\MiddlewareHandler\getStackId
getStackId(callable $callback)
Definition: MiddlewareHandler.php:168
ZM\Store\Database\DBStatement\__construct
__construct(private \PDOStatement $statement)
Definition: DBStatement.php:16
ZM\ZMApplication\__construct
__construct(mixed $dir=null)
Definition: ZMApplication.php:20
ZM\Store\Database\DBConnection\query
query(... $args)
Definition: DBConnection.php:52
ZM\Store\Database\DBConnection
Definition: DBConnection.php:12
ZM\Annotation\AnnotationHandler\handle
handle(AnnotationBase $v, ?callable $rule_callback=null,... $args)
Definition: AnnotationHandler.php:124
ZM\Process
Definition: ProcessStateManager.php:5
ZM\Annotation\Middleware\Middleware\__construct
__construct(public $name, public array $params=[])
Definition: Middleware.php:26
ZM\Plugin\ZMPlugin\addBotEvent
addBotEvent(BotEvent $event)
Definition: ZMPlugin.php:41
ZM\Store\Database\DBStatement\bindParam
bindParam($param, &$variable, $type=ParameterType::STRING, $length=null)
Definition: DBStatement.php:72
ZM\Annotation\OneBot\BotCommand\__construct
__construct(public $name='', public $match='', public $pattern='', public $regex='', public $start_with='', public $end_with='', public $keyword='', public $alias=[], public $detail_type='', public $user_id='', public $group_id='', public $level=20)
Definition: BotCommand.php:30
ZM\Command\BuildCommand\execute
execute(InputInterface $input, OutputInterface $output)
Definition: BuildCommand.php:28
ZM\Store\Database\DBWrapper\iterateKeyValue
iterateKeyValue(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:324
ZM\Container\shouldLog
shouldLog()
Definition: ContainerTrait.php:716
ZM\Middleware
Definition: MiddlewareHandler.php:5
ZM\Plugin\ZMPlugin\$routes
array $routes
Definition: ZMPlugin.php:29
ZM\Command\BuildCommand
Definition: BuildCommand.php:14
ZM\Annotation\AnnotationBase\$method
Closure string array $method
Definition: AnnotationBase.php:10
ZM\Store\Database\DBStatementWrapper\iterateColumn
iterateColumn()
Definition: DBStatementWrapper.php:204
ZM\Framework\start
start()
Definition: Framework.php:114
ZM\Command\Server\ServerCommand\$daemon_file
$daemon_file
Definition: ServerCommand.php:15
ZM\Plugin\ZMPlugin\getRoutes
getRoutes()
Definition: ZMPlugin.php:76
ZM\Bootstrap\LoadConfiguration\bootstrap
bootstrap(array $config)
Definition: LoadConfiguration.php:12
ZM\Annotation\OneBot
Definition: BotAction.php:5
ZM\Store\FileSystem\createDir
static createDir(string $path)
Definition: FileSystem.php:83
ZM\Container\getConcrete
getConcrete(string $abstract)
Definition: ContainerTrait.php:681
ZM\Store\Database\SQLiteDriver
Definition: SQLiteDriver.php:11
ZM_PROCESS_MANAGER
const ZM_PROCESS_MANAGER
Definition: global_defines_app.php:23
ZM\Command\Command\execute
execute(InputInterface $input, OutputInterface $output)
Definition: Command.php:31
ZM\Framework\initDriver
initDriver()
Definition: Framework.php:189
Module\Example\Hello123
Definition: Hello123.php:11
ZM\Store\Database\DBWrapper\getNestTransactionsWithSavepoints
getNestTransactionsWithSavepoints()
Definition: DBWrapper.php:475
ZM\Container\resolveClass
resolveClass(\ReflectionParameter $parameter)
Definition: ContainerTrait.php:655
zm_internal_errcode
zm_internal_errcode(int|string $code)
Definition: global_functions.php:66
ZM\Store\Database\DBWrapper
Definition: DBWrapper.php:13
ZM\Store\Database\DBPool\checkMysqlExtension
static checkMysqlExtension()
Definition: DBPool.php:106
ZM_PROCESS_MASTER
const ZM_PROCESS_MASTER
Definition: global_defines_app.php:22
ZM\Exception\Handler
Definition: Handler.php:10
ZM\Store\Database\DBWrapper\isAutoCommit
isAutoCommit()
Definition: DBWrapper.php:54
ZM\Container\build
build(\Closure|string $concrete)
Definition: ContainerTrait.php:312
ZM\Command\ReplCommand
Definition: ReplCommand.php:14
db
db(string $name='')
Definition: global_functions.php:171
ZM\Command\InitCommand
Definition: InitCommand.php:14
LOAD_MODE_VENDOR
const LOAD_MODE_VENDOR
Definition: global_defines_app.php:34
ZM\Middleware\Pipeline
Definition: Pipeline.php:12
ZM\Annotation\AnnotationBase\addGroup
addGroup(string $name)
Definition: AnnotationBase.php:59
ZM\Utils\HttpUtil\handleHttpCodePage
static handleHttpCodePage(int $code)
Definition: HttpUtil.php:129
ZM\Annotation\AnnotationBase\getGroups
getGroups()
Definition: AnnotationBase.php:64
ZM\Utils
Definition: CatCode.php:5
ZM\Container\ContainerInterface\bindIf
bindIf(string $abstract, $concrete=null, bool $shared=false)
ZM\Annotation\Framework
Definition: BindEvent.php:5
ZM\Container\ClassAliasHelper\getAliasByClass
static getAliasByClass(string $class)
Definition: ClassAliasHelper.php:56
ZM\Container\hasParameterTypeOverride
hasParameterTypeOverride(\ReflectionParameter $parameter)
Definition: ContainerTrait.php:603
ZM\Container\resolvePrimitive
resolvePrimitive(\ReflectionParameter $parameter)
Definition: ContainerTrait.php:640
ZM\Exception\ConfigException\UNSUPPORTED_FILE_TYPE
const UNSUPPORTED_FILE_TYPE
Definition: ConfigException.php:9
ZM\Container\ClassAliasHelper\getAllAlias
static getAllAlias()
Definition: ClassAliasHelper.php:80
ZM\Process\ProcessStateManager
Definition: ProcessStateManager.php:10
ZM\Annotation\AnnotationMap\sortAnnotationList
static sortAnnotationList()
Definition: AnnotationMap.php:45
ZM\Store\Database\DBStatementWrapper\fetchOne
fetchOne()
Definition: DBStatementWrapper.php:74
ZM\Command\ReplCommand\handle
handle()
Definition: ReplCommand.php:16
ZM\Store\FileSystem
Definition: FileSystem.php:9
ZM\Store\Database\DBWrapper\executeStatement
executeStatement(string $sql, array $params=[], array $types=[])
Definition: DBWrapper.php:414
ZM\Context
Definition: BotContext.php:5
ZM\Command\Server\ServerStartCommand
Definition: ServerStartCommand.php:18
ZM\Utils\HttpUtil\parseUri
static parseUri(RequestInterface $request, mixed &$node, mixed &$params)
Definition: HttpUtil.php:32
ZM\Container\ContainerTrait
trait ContainerTrait
Definition: ContainerTrait.php:12
ZM\Exception\ZMException
Definition: ZMException.php:7
ZM\Annotation\AnnotationBase\$class
$class
Definition: AnnotationBase.php:12
container
container()
Definition: global_functions.php:131
ZM\Framework\getArgv
getArgv()
Definition: Framework.php:170
ZM\Store\Database\DBStatementWrapper\rowCount
rowCount()
Definition: DBStatementWrapper.php:218
LOAD_MODE_SRC
const LOAD_MODE_SRC
Definition: global_defines_app.php:35
ZM\Middleware\MiddlewareHandler\bindMiddleware
bindMiddleware(callable $callback, string $name, array $params=[])
Definition: MiddlewareHandler.php:63
ZM\Annotation\OneBot\BotAction
Definition: BotAction.php:18
ZM\Store\Database\DBWrapper\getTransactionIsolation
getTransactionIsolation()
Definition: DBWrapper.php:139
ZM\Annotation\AnnotationHandler
Definition: AnnotationHandler.php:12
ZM\Command\ProxyServerCommand\udpWorkerOnMessage
udpWorkerOnMessage($udp_connection, $data, &$worker)
Definition: ProxyServerCommand.php:309
ZM\Container\notInstantiable
notInstantiable(string $concrete, string $reason='')
Definition: ContainerTrait.php:525
ZM\Container\ContainerInterface\alias
alias(string $abstract, string $alias)
ZM\ConsoleApplication\run
run(InputInterface $input=null, OutputInterface $output=null)
Definition: ConsoleApplication.php:74
ZM\Store\Database\DBStatement\execute
execute($params=null)
Definition: DBStatement.php:87
ZM\Annotation\Interfaces\Rule
Definition: Rule.php:7
ZM\Command\Command\question
question(string $message, bool $newline=true)
Definition: Command.php:109
ZM\Store\Database\DBStatement\closeCursor
closeCursor()
Definition: DBStatement.php:20
ZM\Container\ContainerInterface\singletonIf
singletonIf(string $abstract, $concrete=null)
zm_sleep
zm_sleep(float|int $time)
Definition: global_functions.php:50
ZM\Middleware\MiddlewareHandler\getPipeClosure
getPipeClosure(callable $callback, $stack_id)
Definition: MiddlewareHandler.php:74
ZM\Plugin\ZMPlugin
Definition: ZMPlugin.php:14
ZM\Annotation\Interfaces\Level\setLevel
setLevel($level)
ZM\Event\Listener\HttpEventListener
Definition: HttpEventListener.php:18
ZM\Plugin\ZMPlugin\getEvents
getEvents()
Definition: ZMPlugin.php:71
ZM\Exception\InterruptException
Definition: InterruptException.php:7
ZM\Container\ContainerInterface\flush
flush()
ZM\Utils\MessageUtil\convertToArr
static convertToArr(MessageSegment|\Stringable|array|string $message)
Definition: MessageUtil.php:63
ZM\Annotation\AnnotationBase\on
on(\Closure|callable|string $method)
Definition: AnnotationBase.php:43
ZM\Framework\$argv
array $argv
Definition: Framework.php:51
ZM\Container\WorkerContainer
Definition: WorkerContainer.php:9
ZM\Annotation\Interfaces\Level
Definition: Level.php:7
ZM\Event\Listener\SignalListener\signalManager
signalManager()
Definition: SignalListener.php:89
ZM\Container\BoundMethod\call
static call(ContainerInterface $container, callable|string $callback, array $parameters=[], string $default_method=null)
Definition: BoundMethod.php:19
ZM\Exception\ConfigException\loadConfigFailed
static loadConfigFailed(string $file_path, string $message)
Definition: ConfigException.php:18
Module\Example
Definition: Hello123.php:5
ZM\Event\EventProvider
Definition: EventProvider.php:10
ZM\Store\Database\DBStatement\rowCount
rowCount()
Definition: DBStatement.php:92
ZM\Annotation\AnnotationBase\getIterator
getIterator()
Definition: AnnotationBase.php:49
ZM\Event\Listener\ManagerEventListener\onManagerStop
onManagerStop()
Definition: ManagerEventListener.php:35
ZM\Command\CheckConfigCommand\handle
handle()
Definition: CheckConfigCommand.php:16
ZM\Store\Database\SQLiteDriver\getSchemaManager
getSchemaManager($conn)
Definition: SQLiteDriver.php:24
ZM\Container\isShared
isShared(string $abstract)
Definition: ContainerTrait.php:706
ZM\Event\Listener\ManagerEventListener\onManagerStart
onManagerStart()
Definition: ManagerEventListener.php:18
ZM\Container\isAlias
isAlias(string $name)
Definition: ContainerTrait.php:478
ZM\Middleware\MiddlewareHandler\$middlewares
array $middlewares
Definition: MiddlewareHandler.php:17
ZM\Container\Container\getParent
getParent()
Definition: Container.php:19
ZM\Store\Database\DBStatementWrapper
Definition: DBStatementWrapper.php:15
ZM\Middleware\MiddlewareHandler\registerBefore
registerBefore(string $name, callable $callback)
Definition: MiddlewareHandler.php:34
ZM\Context\BotContext\hasReplied
hasReplied()
Definition: BotContext.php:66
ZM\Event\Listener\SignalListener
Definition: SignalListener.php:14
ZM\Store\FileSystem\scanDirFiles
static scanDirFiles(string $dir, bool $recursive=true, bool|string $relative=false, bool $include_dir=false)
Definition: FileSystem.php:20
ZM\Store\Database\DBConnection\rollBack
rollBack()
Definition: DBConnection.php:107
resolve
resolve(string $abstract, array $parameters=[])
Definition: global_functions.php:144
ZM\Container
Definition: BoundMethod.php:5
ZM\Store\Database\DBStatementWrapper\iterateNumeric
iterateNumeric()
Definition: DBStatementWrapper.php:152
ZM\Utils\HttpUtil\handleStaticPage
static handleStaticPage(string $uri, array $settings=[])
Definition: HttpUtil.php:73
ZM\Container\getParameterOverride
getParameterOverride(\ReflectionParameter $parameter)
Definition: ContainerTrait.php:595
ZM\Process\ProcessStateManager\removeProcessState
static removeProcessState(int $type, int|string $id_or_name=null)
Definition: ProcessStateManager.php:18
ZM\Command\BotCraft
Definition: BotCraftCommand.php:5
ZM\Annotation\AnnotationParser\getUsedTime
getUsedTime()
Definition: AnnotationParser.php:265
ZM\Middleware\PipelineInterface
Definition: PipelineInterface.php:7
ZM\Annotation\Http\Controller
Definition: Controller.php:21
ZM\Store\Lock\FileLock
Definition: FileLock.php:9
ZM\Store\Database\DBWrapper\beginTransaction
beginTransaction()
Definition: DBWrapper.php:483
ZM\Framework\VERSION
const VERSION
Definition: Framework.php:48
ZM\Context\BotContext\getEchoAction
getEchoAction(mixed $echo)
Definition: BotContext.php:96
ZM\Command\Server\ServerReloadCommand\execute
execute(InputInterface $input, OutputInterface $output)
Definition: ServerReloadCommand.php:15
ZM\Annotation\OneBot\BotCommand\getLevel
getLevel()
Definition: BotCommand.php:87
ZM\Command\Server\ServerReloadCommand
Definition: ServerReloadCommand.php:13
ZM\Annotation\AnnotationHandler\STATUS_EXCEPTION
const STATUS_EXCEPTION
Definition: AnnotationHandler.php:18
ZM\Store\Database\MySQLDriver\getDatabasePlatform
getDatabasePlatform()
Definition: MySQLDriver.php:19
ZM\Context\ContextInterface
Definition: ContextInterface.php:7
ZM\Utils\CatCode\decode
static decode(\Stringable|int|string $msg, bool $is_content=false)
Definition: CatCode.php:59
ZM\Store\Database\MySQLDriver\getSchemaManager
getSchemaManager($conn)
Definition: MySQLDriver.php:24
ZM\Command\CheckConfigCommand
Definition: CheckConfigCommand.php:10
ZM\Annotation\Interfaces\CustomAnnotation
Definition: CustomAnnotation.php:7
ZM\Container\ClassAliasHelper\getClass
static getClass(string $alias)
Definition: ClassAliasHelper.php:72
ZM\Annotation\Framework\BindEvent
Definition: BindEvent.php:24
ZM\Bootstrap\RegisterEventProvider
Definition: RegisterEventProvider.php:9
ZM\Context\BotContext\sendMessage
sendMessage(\Stringable|array|MessageSegment|string $message, string $detail_type, array $params=[])
Definition: BotContext.php:88
coroutine
coroutine()
Definition: global_functions.php:58
ZM\Framework\$driver
SwooleDriver Driver WorkermanDriver $driver
Definition: Framework.php:54
ZM\Store\Database\DBWrapper\iterateColumn
iterateColumn(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:360
ZM\Plugin\ZMPlugin\$events
array $events
Definition: ZMPlugin.php:26
ZM\Annotation\AnnotationHandler\STATUS_INTERRUPTED
const STATUS_INTERRUPTED
Definition: AnnotationHandler.php:16
ZM\Annotation\Middleware\Middleware
Definition: Middleware.php:21
ZM\Event\Listener\SignalListener\onWorkerInt
onWorkerInt()
Definition: SignalListener.php:46
ZM\Config\ZMConfig
Definition: ZMConfig.php:12
ZM\Command\InitCommand\configure
configure()
Definition: InitCommand.php:22
ZM\Store\Database\DBWrapper\isRollbackOnly
isRollbackOnly()
Definition: DBWrapper.php:573
ZM\Middleware\Pipeline\through
through(array $middlewares)
Definition: Pipeline.php:34
ZM\Exception\Handler\__construct
__construct()
Definition: Handler.php:12
ZM\Middleware\MiddlewareHandler\getCurrentCallable
getCurrentCallable()
Definition: MiddlewareHandler.php:159
ZM\Process\ProcessStateManager\getProcessState
static getProcessState(int $type, mixed $id_or_name=null)
Definition: ProcessStateManager.php:70
ZM\Annotation\AnnotationHandler\STATUS_RULE_FAILED
const STATUS_RULE_FAILED
Definition: AnnotationHandler.php:22
ZM\Annotation\AnnotationBase
Definition: AnnotationBase.php:7
ZM\Event\Listener\WorkerEventListener\onWorkerStart999
onWorkerStart999()
Definition: WorkerEventListener.php:33
ZM\Event\Listener\MasterEventListener\onMasterStart
onMasterStart()
Definition: MasterEventListener.php:19
ZM\Store\Database\DBWrapper\__destruct
__destruct()
Definition: DBWrapper.php:38
ZM\Annotation\Closed
Definition: Closed.php:18
ZM_STATE_DIR
const ZM_STATE_DIR
Definition: global_defines_app.php:66
ZM\Plugin\OneBot12Adapter\parseBotCommand
parseBotCommand(BotCommand $command, ?array $same_method_annotations=null)
Definition: OneBot12Adapter.php:58
ZM\Annotation\AnnotationParser\addRegisterPath
addRegisterPath(string $path, string $indoor_name)
Definition: AnnotationParser.php:256
ZM\Store\Database\DBStatementWrapper\fetchAllAssociative
fetchAllAssociative()
Definition: DBStatementWrapper.php:100
ZM\Event\Listener\WorkerEventListener\onWorkerStop999
onWorkerStop999()
Definition: WorkerEventListener.php:104
ZM\Store\Database\DBWrapper\commit
commit()
Definition: DBWrapper.php:492
ZM\Store\Database\DBConnection\__destruct
__destruct()
Definition: DBConnection.php:26
middleware
middleware()
Definition: global_functions.php:121
ZM\Store\FileSystem\getReloadableFiles
static getReloadableFiles()
Definition: FileSystem.php:95
ZM\Container\resolveDependencies
resolveDependencies(array $dependencies)
Definition: ContainerTrait.php:543
ZM\Annotation\AnnotationMap\loadAnnotationByParser
static loadAnnotationByParser(AnnotationParser $parser)
Definition: AnnotationMap.php:35
ZM\Annotation\AnnotationParser\parseAll
parseAll()
Definition: AnnotationParser.php:207
ZM\Store\Database\DBWrapper\setNestTransactionsWithSavepoints
setNestTransactionsWithSavepoints(bool $nest_transactions_with_savepoints)
Definition: DBWrapper.php:463
ZM\Utils\ReflectionUtil\getCallReflector
static getCallReflector(callable|string $callback)
Definition: ReflectionUtil.php:104
ZM\Annotation\AnnotationHandler\__construct
__construct(string $annotation_class)
Definition: AnnotationHandler.php:41
ZM\Event\Listener\HttpEventListener\onRequest1
onRequest1(HttpRequestEvent $event)
Definition: HttpEventListener.php:76
ZM\Utils\ConnectionUtil\$connection_count
static int $connection_count
Definition: ConnectionUtil.php:16
ZM\Config\ZMConfig\getTrace
getTrace(string $key)
Definition: ZMConfig.php:250
ZM\Utils\HttpUtil\createJsonResponse
static createJsonResponse(array $data, int $http_code=200, int $json_flag=JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE)
Definition: HttpUtil.php:149
ZM\Container\ContainerInterface\instance
instance(string $abstract, $instance)
ZM\Store\Database\MySQLDriver\getDatabase
getDatabase($conn)
Definition: MySQLDriver.php:34
ZM\Store\Database\DBQueryBuilder
Definition: DBQueryBuilder.php:10
ZM\Annotation\Framework\Init
Definition: Init.php:20
ZM\Middleware\MiddlewareHandler\$reg_map
array $reg_map
Definition: MiddlewareHandler.php:22
ZM\Command\Command\handle
handle()
ZM\Command\Command\write
write(string $message, bool $newline=true)
Definition: Command.php:65
ZM\Container\EntryNotFoundException
Definition: EntryNotFoundException.php:9
ZM\Command\Server\ServerStatusCommand
Definition: ServerStatusCommand.php:12
ZM\Context\BotContext
Definition: BotContext.php:21
ZM\Plugin\OneBot12Adapter\handleUnknownWSReverseInput
handleUnknownWSReverseInput(WebSocketOpenEvent $event)
Definition: OneBot12Adapter.php:109
ZM\Annotation\Http
Definition: Controller.php:5
ZM\Container\singletonIf
singletonIf(string $abstract, $concrete=null)
Definition: ContainerTrait.php:175
sql_builder
sql_builder(string $name='')
Definition: global_functions.php:181
ZM\Event\Listener\WorkerEventListener
Definition: WorkerEventListener.php:24
ZM\Annotation\Http\Route
Definition: Route.php:20
ZM
ZM\Annotation\AnnotationBase\__toString
__toString()
Definition: AnnotationBase.php:16
ZM\Store\Database\DBQueryBuilder\__construct
__construct(DBWrapper $wrapper)
Definition: DBQueryBuilder.php:14
ZM\Framework\reload
reload()
Definition: Framework.php:154
ZM\Event\Listener\WSEventListener\onWebSocketClose
onWebSocketClose(WebSocketCloseEvent $event)
Definition: WSEventListener.php:65
ZM\Store\Database\DBStatementWrapper\iterateKeyValue
iterateKeyValue()
Definition: DBStatementWrapper.php:178
ZM\Store\Database\DBWrapper\getDatabase
getDatabase()
Definition: DBWrapper.php:46
ZM\Command\Server\ServerStartCommand\configure
configure()
Definition: ServerStartCommand.php:27
ZM\Annotation\Interfaces\ErgodicAnnotation
Definition: ErgodicAnnotation.php:7
ZM\Store\Database\DBPool\pool
static pool(string $name)
Definition: DBPool.php:73
ZM\Event\Listener\SignalListener\signalWorker
signalWorker()
Definition: SignalListener.php:28
ZM\Plugin
Definition: OneBot12Adapter.php:5
ZM\Annotation\AnnotationHandler\getReturnVal
getReturnVal()
Definition: AnnotationHandler.php:167
ZM\Config\ZMConfig\$environment_alias
static array $environment_alias
Definition: ZMConfig.php:34
ZM\Container\getExtenders
getExtenders(string $abstract)
Definition: ContainerTrait.php:468
ZM\Container\BoundMethod\getMethodDependencies
static getMethodDependencies(ContainerInterface $container, callable|string $callback, array $parameters=[])
Definition: BoundMethod.php:45
ZM\Annotation\AnnotationHandler\handleAll
handleAll(mixed ... $params)
Definition: AnnotationHandler.php:89
ZM\Utils\ReflectionUtil\variableToString
static variableToString(mixed $var)
Definition: ReflectionUtil.php:47
ZM\Store\Database\MySQLDriver
Definition: MySQLDriver.php:11
ZM\Store\Database\DBStatement\getIterator
getIterator()
Definition: DBStatement.php:97
ZM\Container\getAlias
getAlias(string $abstract)
Definition: ContainerTrait.php:76
ZM_ERR_METHOD_NOT_FOUND
const ZM_ERR_METHOD_NOT_FOUND
Definition: global_defines_app.php:30
ZM\Annotation\OneBot\BotEvent\setLevel
setLevel($level)
Definition: BotEvent.php:41
ZM\Annotation\AnnotationMap\$_list
static array $_list
Definition: AnnotationMap.php:20
ZM\Utils\ConnectionUtil
Definition: ConnectionUtil.php:10
ZM\Store\Database\DBStatementWrapper\columnCount
columnCount()
Definition: DBStatementWrapper.php:36
ZM\Container\ClassAliasHelper\getAlias
static getAlias(string $alias)
Definition: ClassAliasHelper.php:45
ZM\Plugin\OneBot12Adapter\parseCommandArgument
parseCommandArgument()
Definition: OneBot12Adapter.php:74
ZM\Store\Database\DBWrapper\fetchNumeric
fetchNumeric(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:84
ZM\Container\$with
array $with
Definition: ContainerTrait.php:23
ZM\Plugin\OneBot12Adapter\handleWSReverseOpen
handleWSReverseOpen(WebSocketOpenEvent $event)
Definition: OneBot12Adapter.php:124
ZM\Bootstrap\SetInternalTimezone
Definition: SetInternalTimezone.php:7
ZM\Utils\ZMUtil\getComposerMetadata
static getComposerMetadata(?string $path=null)
Definition: ZMUtil.php:13
ZM\Command\Server\ServerStopCommand\execute
execute(InputInterface $input, OutputInterface $output)
Definition: ServerStopCommand.php:25
ZM\Config\ZMConfig\reload
reload()
Definition: ZMConfig.php:229
ZM\Command\Command\shouldExecute
shouldExecute()
Definition: Command.php:46
ZM\Store\Database\DBStatement\fetch
fetch($fetchMode=\PDO::FETCH_ASSOC, $cursorOrientation=\PDO::FETCH_ORI_NEXT, $cursorOffset=0)
Definition: DBStatement.php:45
ZM\Annotation\OneBot\BotActionResponse\getLevel
getLevel()
Definition: BotActionResponse.php:27
ZM\Annotation
Definition: AnnotationBase.php:5
ZM\Container\log
log(string $message)
Definition: ContainerTrait.php:724
ZM\Process\ProcessStateManager\saveProcessState
static saveProcessState(int $type, int|string $pid, array $data=[])
Definition: ProcessStateManager.php:119
ZM\Annotation\Framework\Setup
Definition: Setup.php:20
ZM\Command\Command\info
info(string $message, bool $newline=true)
Definition: Command.php:76
ZM\Container\dropStaleInstances
dropStaleInstances(string $abstract)
Definition: ContainerTrait.php:488
ZM\Store\Database\DBWrapper\transactional
transactional(\Closure $func)
Definition: DBWrapper.php:446
ZM\Command\Server\ServerCommand
Definition: ServerCommand.php:13
ZM\Store\Database\DBStatementWrapper\iterateAssociative
iterateAssociative()
Definition: DBStatementWrapper.php:165
ZM\Annotation\OneBot\BotAction\__construct
__construct(public string $action='', public bool $need_response=false, public int $level=20)
Definition: BotAction.php:20
ZM\Exception
Definition: ConfigException.php:5
ZM\Middleware\Pipeline\then
then(callable $callback)
Definition: Pipeline.php:47
ZM\Container\bind
bind(string $abstract, $concrete=null, bool $shared=false)
Definition: ContainerTrait.php:114
ZM\Exception\ZMException\__construct
__construct(string $description, string $solution='', int $code=0, ?\Throwable $previous=null)
Definition: ZMException.php:9
ZM\Store\Database\DBWrapper\setAutoCommit
setAutoCommit(bool $auto_commit)
Definition: DBWrapper.php:62
ZM\Context\BotContext\__construct
__construct(string $bot_id, string $platform)
Definition: BotContext.php:27
ZM\Command\BotCraft\BotCraftCommand\handle
handle()
Definition: BotCraftCommand.php:13
ZM\Command\ProxyServerCommand
Definition: ProxyServerCommand.php:19
ZM\Store\Database\DBStatementWrapper\fetchNumeric
fetchNumeric()
Definition: DBStatementWrapper.php:46
ZM\Utils\MessageUtil\strToArray
static strToArray(string $msg, bool $assoc_result=false, bool $ignore_space=true, bool $trim_text=false)
Definition: MessageUtil.php:33
ZM\Store\Database\DBStatement\columnCount
columnCount()
Definition: DBStatement.php:25
ZM\Command\Server\ServerStopCommand\configure
configure()
Definition: ServerStopCommand.php:18
ZM\Store\Database\DBStatementWrapper\getIterator
getIterator()
Definition: DBStatementWrapper.php:26
ZM\Config\ZMConfig\__construct
__construct(array $config_paths=[], string $environment='uninitiated')
Definition: ZMConfig.php:73
ZM\Store\Database\DBStatementWrapper\iterateAssociativeIndexed
iterateAssociativeIndexed()
Definition: DBStatementWrapper.php:191
ZM\Store\Database\MySQLDriver\connect
connect(array $params, $username=null, $password=null, array $driverOptions=[])
Definition: MySQLDriver.php:13
ZM\Exception\SingletonViolationException
Definition: SingletonViolationException.php:7
ZM\Plugin\ZMPlugin\getDir
getDir()
Definition: ZMPlugin.php:36
ZM\Container\alias
alias(string $abstract, string $alias)
Definition: ContainerTrait.php:94
ZM\Config\ConfigTracer\addTracesOf
addTracesOf(string $group, array $traces, string $source)
Definition: ConfigTracer.php:21
ZM\Container\factory
factory(string $abstract)
Definition: ContainerTrait.php:210
ZM\Container\singleton
singleton(string $abstract, $concrete=null)
Definition: ContainerTrait.php:162
ZM\Context\Context
Definition: Context.php:18
ZM\Command\Generate\SystemdGenerateCommand\execute
execute(InputInterface $input, OutputInterface $output)
Definition: SystemdGenerateCommand.php:15
ZM\Command\Command
Definition: Command.php:13
ZM\Store\Database\DBWrapper\update
update(string $table, array $data, array $criteria, array $types=[])
Definition: DBWrapper.php:149
ZM\Command\Generate
Definition: ClassAliasHelperGenerateCommand.php:5
ZM_INIT_TIME
const ZM_INIT_TIME
Definition: global_defines_app.php:63
ZM\Middleware\MiddlewareHandler\$callable_stack
array $callable_stack
Definition: MiddlewareHandler.php:32
ZM\Middleware\MiddlewareHandler\registerAfter
registerAfter(string $name, callable $callback)
Definition: MiddlewareHandler.php:39
ZM\Framework
Definition: Framework.php:40
ZM\Exception\ZMKnownException\__construct
__construct($err_code, $message='', $code=0, \Throwable $previous=null)
Definition: ZMKnownException.php:12
ZM\Utils\ConnectionUtil\addConnection
static addConnection(int $fd, array $handle=[])
Definition: ConnectionUtil.php:29
ZM\Store\Database\DBStatementWrapper\free
free()
Definition: DBStatementWrapper.php:230
ZM\Annotation\OneBot\CommandArgument\__construct
__construct(public string $name, public string $description='', string $type='string', public bool $required=false, public string $prompt='', public string $default='', public int $timeout=60, public int $error_prompt_policy=1)
Definition: CommandArgument.php:34
ZM_VERSION_ID
const ZM_VERSION_ID
Definition: global_defines_app.php:12
ZM\Container\setLogPrefix
setLogPrefix(string $prefix)
Definition: ContainerTrait.php:457
ZM\Container\BoundMethod\addDependencyForCallParameter
static addDependencyForCallParameter(ContainerInterface $container, \ReflectionParameter $parameter, array &$parameters, array &$dependencies)
Definition: BoundMethod.php:67
ZM\Store\Database\SQLiteDriver\getName
getName()
Definition: SQLiteDriver.php:29
ZM\Utils\ReflectionUtil\getParameterClassName
static getParameterClassName(\ReflectionParameter $parameter)
Definition: ReflectionUtil.php:18
ZM\Command\Server\ServerStartCommand\execute
execute(InputInterface $input, OutputInterface $output)
Definition: ServerStartCommand.php:51
ZM\Bootstrap\LoadGlobalDefines\bootstrap
bootstrap(array $config)
Definition: LoadGlobalDefines.php:9
ZM\Container\bound
bound(string $abstract)
Definition: ContainerTrait.php:62
ZM\Plugin\PluginManager\addPlugin
static addPlugin(array $meta=[])
Definition: PluginManager.php:131
ZM\Plugin\ZMPlugin\getBotCommands
getBotCommands()
Definition: ZMPlugin.php:66
ZM\Container\extend
extend(string $abstract, \Closure $closure)
Definition: ContainerTrait.php:423
ZM\Container\ContainerInterface\make
make(string $abstract, array $parameters=[])
ZM_ERR_ROUTE_METHOD_NOT_ALLOWED
const ZM_ERR_ROUTE_METHOD_NOT_ALLOWED
Definition: global_defines_app.php:32
ZM\Config\ZMConfig\addConfigPath
addConfigPath(string $path)
Definition: ZMConfig.php:190
ZM\Plugin\PluginManager
Definition: PluginManager.php:14
ZM\ZMApplication\withConfig
withConfig(array $config)
Definition: ZMApplication.php:30
ZM\Container\call
call(callable|string $callback, array $parameters=[], string $default_method=null)
Definition: ContainerTrait.php:362
ZM\Store\Database\DBWrapper\fetchAllAssociativeIndexed
fetchAllAssociativeIndexed(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:252
ZM\Container\has
has(string $id)
Definition: ContainerTrait.php:412
ZM\Annotation\Http\Route\__construct
__construct(public $route, public $name='', public $request_method=['GET', 'POST'], public $params=[])
Definition: Route.php:22
ZM\Store\Database\DBQueryBuilder\execute
execute()
Definition: DBQueryBuilder.php:23
ZM\Command\Command\error
error(string $message, bool $newline=true)
Definition: Command.php:87
ZM\Store\Database\DBConnection\getPoolName
getPoolName()
Definition: DBConnection.php:125
ZM\Store\Database\DBWrapper\createQueryBuilder
createQueryBuilder()
Definition: DBWrapper.php:585
ZM\Config
Definition: ConfigTracer.php:5
ZM\Annotation\Framework\BindEvent\__construct
__construct(public string $event_class, public int $level=800)
Definition: BindEvent.php:29
is_assoc_array
is_assoc_array(array $array)
Definition: global_functions.php:102
ZM\Store\Database\DBConnection\exec
exec($sql)
Definition: DBConnection.php:72
ZM\Utils\MessageUtil\arrayToStr
static arrayToStr(array $message_segment)
Definition: MessageUtil.php:19
ZM\Plugin\ZMPlugin\getBotEvents
getBotEvents()
Definition: ZMPlugin.php:61
ZM\Process\ProcessStateManager\isStateEmpty
static isStateEmpty()
Definition: ProcessStateManager.php:150
ZM\ConsoleApplication
Definition: ConsoleApplication.php:20
ZM\Annotation\AnnotationBase\$group
array $group
Definition: AnnotationBase.php:14
ZM\Store\Database\DBPool\create
static create(string $name, array $config)
Definition: DBPool.php:29
ZM\Annotation\OneBot\BotCommand\withArgumentObject
withArgumentObject(CommandArgument $argument)
Definition: BotCommand.php:81
ZM\Plugin\ZMPlugin\addEvent
addEvent(string $event_name, callable $callback, int $level=20)
Definition: ZMPlugin.php:51
ZM\Annotation\Framework\BindEvent\getLevel
getLevel()
Definition: BindEvent.php:38
ZM\Store\FileSystem\isRelativePath
static isRelativePath(string $path)
Definition: FileSystem.php:69
ZM\Store\Database\DBPool\getAllPools
static getAllPools()
Definition: DBPool.php:86
ZM\Store\Database\DBStatement\fetchAll
fetchAll($fetchMode=\PDO::FETCH_ASSOC, $fetchArgument=null, $ctorArgs=null)
Definition: DBStatement.php:50
ZM_ERR_NONE
const ZM_ERR_NONE
Definition: global_defines_app.php:29
ZM\Store\Database\DBConnection\errorCode
errorCode()
Definition: DBConnection.php:112
ZM\Plugin\OneBot12Adapter\__construct
__construct(string $submodule='', ?AnnotationParser $parser=null)
Definition: OneBot12Adapter.php:28
ZM\Annotation\OneBot\BotEvent
Definition: BotEvent.php:21
ZM\Plugin\OneBot12Adapter
Definition: OneBot12Adapter.php:26
ZM\Annotation\AnnotationParser\getAnnotationMap
getAnnotationMap()
Definition: AnnotationParser.php:273
ZM\Annotation\OneBot\CommandArgument\fixTypeName
fixTypeName(string $type)
Definition: CommandArgument.php:78
ZM\Annotation\Http\Controller\__construct
__construct(public string $prefix)
Definition: Controller.php:23
ZM\Container\Container\has
has(string $id)
Definition: Container.php:33
ZM\Store\Database\DBWrapper\executeQuery
executeQuery(string $sql, array $params=[], array $types=[], ?QueryCacheProfile $qcp=null)
Definition: DBWrapper.php:377
ZM\Annotation\AnnotationHandler\STATUS_NORMAL
const STATUS_NORMAL
Definition: AnnotationHandler.php:14
ZM\Config\ZMConfig\merge
merge(string $key, array $config)
Definition: ZMConfig.php:148
ZM\Store\Database\DBWrapper\iterateAssociativeIndexed
iterateAssociativeIndexed(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:342
ZM\Store\Database\DBWrapper\quote
quote(mixed $value, $type=ParameterType::STRING)
Definition: DBWrapper.php:185
ZM\Exception\Handler\handle
handle(\Throwable $e)
Definition: Handler.php:17
ZM\Container\Container
Definition: Container.php:9
ZM\Store\MockAtomic
Definition: MockAtomic.php:7
ZM\Exception\SingletonViolationException\__construct
__construct(string $singleton_class_name)
Definition: SingletonViolationException.php:9
ZM\Store\Database\DBWrapper\createSavepoint
createSavepoint(string $savepoint)
Definition: DBWrapper.php:519
ZM\Middleware\TimerMiddleware\handle
handle(callable $callback,... $params)
Definition: TimerMiddleware.php:9
ZM\Framework\stop
stop(int $retcode=0)
Definition: Framework.php:130
_zm_setup_loader
_zm_setup_loader()
Definition: script_setup_loader.php:9
ZM\Annotation\AnnotationMap
Definition: AnnotationMap.php:12
ZM\ZMApplication
Definition: ZMApplication.php:12
ZM\Config\ConfigTracer
Definition: ConfigTracer.php:7
ZM\Store\Database\DBWrapper\getTransactionNestingLevel
getTransactionNestingLevel()
Definition: DBWrapper.php:426
ZM\Container\ClassAliasHelper\isAlias
static isAlias(string $alias)
Definition: ClassAliasHelper.php:34
ZM\Container\getLastParameterOverride
getLastParameterOverride()
Definition: ContainerTrait.php:515
ZM\Event\Listener\SignalListener\signalMaster
signalMaster()
Definition: SignalListener.php:51
ZM\Bootstrap\RegisterLogger
Definition: RegisterLogger.php:9
ZM\Store\Database\DBException\__construct
__construct(string $description, int $code=0, ?\Throwable $previous=null)
Definition: DBException.php:11
ZM\Container\instance
instance(string $abstract, mixed $instance)
Definition: ContainerTrait.php:189
ZM\Utils\ConnectionUtil\setConnection
static setConnection(int $fd, array $handle)
Definition: ConnectionUtil.php:50
ZM\Middleware\MiddlewareHandler\registerException
registerException(string $name, string $exception_class, callable $callback)
Definition: MiddlewareHandler.php:55
ZM\Store\Database\DBWrapper\fetchAllKeyValue
fetchAllKeyValue(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:234
ZM\Annotation\OneBot\BotCommand\getArguments
getArguments()
Definition: BotCommand.php:100
ZM\Annotation\OneBot\BotCommand\withArgument
withArgument(string $name, string $description='', string $type='string', bool $required=false, string $prompt='', string $default='', int $timeout=60, int $error_prompt_policy=1)
Definition: BotCommand.php:67
ZM_PROCESS_USER
const ZM_PROCESS_USER
Definition: global_defines_app.php:25
ZM\Annotation\Framework\Init\__construct
__construct(public int $worker=0)
Definition: Init.php:22
ZM\Command\ProxyServerCommand\execute
execute(InputInterface $input, OutputInterface $output)
Definition: ProxyServerCommand.php:406
ZM\Store\Database\DBStatementWrapper\fetchFirstColumn
fetchFirstColumn()
Definition: DBStatementWrapper.php:139
ZM\Framework\__construct
__construct(array $argv=[])
Definition: Framework.php:75
ZM\Plugin\OneBot12Adapter\handleBotCommand
handleBotCommand(BotEvent $event, BotContext $ctx)
Definition: OneBot12Adapter.php:85
ZM\Plugin\ZMPlugin\addBotCommand
addBotCommand(BotCommand $command)
Definition: ZMPlugin.php:46
ZM\Annotation\OneBot\BotActionResponse
Definition: BotActionResponse.php:21
ZM_ERR_ROUTE_NOT_FOUND
const ZM_ERR_ROUTE_NOT_FOUND
Definition: global_defines_app.php:31
ZM\Container\ContainerServicesProvider
Definition: ContainerServicesProvider.php:17
ZM\Store\Database\DBStatement\errorCode
errorCode()
Definition: DBStatement.php:77
Module\Example\Hello123\route
route()
Definition: Hello123.php:15
ZM\Event\Listener\SignalListener\signalWindowsCtrlC
signalWindowsCtrlC()
Definition: SignalListener.php:114
ZM\Annotation\OneBot\BotActionResponse\setLevel
setLevel($level)
Definition: BotActionResponse.php:32
ZM\Store\FileSystem\getClassesPsr4
static getClassesPsr4(string $dir, string $base_namespace, mixed $rule=null, bool|string $return_path_value=false)
Definition: FileSystem.php:116
ZM\Container\ContainerInterface\call
call(callable $callback, array $parameters=[], string $default_method=null)
ZM\Utils\MessageUtil
Definition: MessageUtil.php:12
SOURCE_ROOT_DIR
const SOURCE_ROOT_DIR
Definition: global_defines_app.php:41
ZM\Bootstrap\SetInternalTimezone\bootstrap
bootstrap(array $config)
Definition: SetInternalTimezone.php:9
config
config(array|string $key=null, mixed $default=null)
Definition: global_functions.php:197
ZM\Annotation\OneBot\BotCommand\make
static make( $name='', $match='', $pattern='', $regex='', $start_with='', $end_with='', $keyword='', $alias=[], $message_type='', $user_id='', $group_id='', $level=20)
Definition: BotCommand.php:46
ZM\Middleware\Pipeline\send
send(mixed $value)
Definition: Pipeline.php:23
ZM\Command\BotCraft\BotCraftCommand
Definition: BotCraftCommand.php:11
ZM\Store\Database\MySQLDriver\getName
getName()
Definition: MySQLDriver.php:29
ZM\Command\ProxyServerCommand\configure
configure()
Definition: ProxyServerCommand.php:395
ZM\Store\Database\DBWrapper\fetchOne
fetchOne(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:97
ZM\Store\Lock
Definition: FileLock.php:5
ZM\Annotation\OneBot\CommandArgument\$type
string $type
Definition: CommandArgument.php:23
ZM\Annotation\AnnotationParser\addSpecialParser
addSpecialParser(string $class_name, callable $callback)
Definition: AnnotationParser.php:69
ZM\Plugin\ZMPlugin\$dir
string $dir
Definition: ZMPlugin.php:17
ZM\Container\ContainerServicesProvider\registerServices
registerServices(string $scope,... $params)
Definition: ContainerServicesProvider.php:32
ZM\Config\ZMConfig\LOAD_ORDER
const LOAD_ORDER
Definition: ZMConfig.php:24
ZM\Container\getClosure
getClosure(string $abstract, string $concrete)
Definition: ContainerTrait.php:503
ZM\Container\ContainerInterface\singleton
singleton(string $abstract, $concrete=null)
ZM\Plugin\PluginManager\addPluginsFromDir
static addPluginsFromDir(string $dir)
Definition: PluginManager.php:43
app
app(string $abstract=null, array $parameters=[])
Definition: global_functions.php:157
ZM\Middleware\TimerMiddleware
Definition: TimerMiddleware.php:7
ZM\Annotation\OneBot\BotCommand
Definition: BotCommand.php:23
ZM\ZMApplication\withArgs
withArgs(array $args)
Definition: ZMApplication.php:36
ZM\Store\Database\DBWrapper\rollBack
rollBack()
Definition: DBWrapper.php:505
ZM\Command\Server\ServerCommand\execute
execute(InputInterface $input, OutputInterface $output)
Definition: ServerCommand.php:20
ZM\Store\Database\DBWrapper\rollbackSavepoint
rollbackSavepoint(string $savepoint)
Definition: DBWrapper.php:547
ZM\Store\Database\DBStatement\errorInfo
errorInfo()
Definition: DBStatement.php:82
ZM\Container\getLogPrefix
getLogPrefix()
Definition: ContainerTrait.php:443
ZM\Utils\ReflectionUtil\getMethod
static getMethod(string $class, string $method)
Definition: ReflectionUtil.php:126
ZM\Config\ZMConfig\getEnvironment
getEnvironment()
Definition: ZMConfig.php:202
ZM\Utils\HttpUtil\getRouteCollection
static getRouteCollection()
Definition: HttpUtil.php:156
ZM\Container\EntryResolutionException
Definition: EntryResolutionException.php:9
ZM\Command\Command\section
section(string $message, callable $callback)
Definition: Command.php:133
ZM\Framework\getDriver
getDriver()
Definition: Framework.php:178
ZM\Store\Database\DBWrapper\executeCacheQuery
executeCacheQuery(string $sql, array $params, array $types, QueryCacheProfile $qcp)
Definition: DBWrapper.php:395
ZM\Plugin\PluginManager\enablePlugins
static enablePlugins(AnnotationParser $parser)
Definition: PluginManager.php:170
ZM\Annotation\OneBot\BotEvent\__construct
__construct(public ?string $type=null, public ?string $detail_type=null, public ?string $sub_type=null, public int $level=20)
Definition: BotEvent.php:23
ZM\ConsoleApplication\__construct
__construct(string $name='zhamao-framework')
Definition: ConsoleApplication.php:24
ZM\Command\Generate\SystemdGenerateCommand
Definition: SystemdGenerateCommand.php:13
ZM\Bootstrap\HandleExceptions
Definition: HandleExceptions.php:10
ZM\Context\BotContext\getBot
getBot(string $bot_id, string $platform='')
Definition: BotContext.php:79
ZM\Framework\initFramework
initFramework()
Definition: Framework.php:217
ZM\Store\Database\DBStatement\fetchColumn
fetchColumn($columnIndex=0)
Definition: DBStatement.php:62
ZM\Command\Server
Definition: ServerCommand.php:5
ZM\Store\Database\DBWrapper\fetchAssociative
fetchAssociative(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:71
ZM\Exception\ConfigException\unsupportedFileType
static unsupportedFileType(string $file_path)
Definition: ConfigException.php:13
ZM\Config\ZMConfig\setEnvironment
setEnvironment(string $environment)
Definition: ZMConfig.php:214
ZM\Utils\EasterEgg\checkFrameworkPermissionCall
static checkFrameworkPermissionCall()
Definition: EasterEgg.php:12
ZM\Event\Listener\WSEventListener\onWebSocketOpen
onWebSocketOpen(WebSocketOpenEvent $event)
Definition: WSEventListener.php:25
ZM\Command\Command\comment
comment(string $message, bool $newline=true)
Definition: Command.php:98
ZM\Bootstrap\RegisterLogger\bootstrap
bootstrap(array $config)
Definition: RegisterLogger.php:11
WORKING_DIR
const WORKING_DIR
Definition: global_defines_app.php:38
ZM_PROCESS_WORKER
const ZM_PROCESS_WORKER
Definition: global_defines_app.php:24
ZM\Annotation\OneBot\CommandArgument\getTypeErrorPrompt
getTypeErrorPrompt()
Definition: CommandArgument.php:65
ZM\Command\InitCommand\handle
handle()
Definition: InitCommand.php:31
ZM\Middleware\PipelineInterface\handle
handle(callable $callback,... $params)
ZM\Container\BoundMethod
Definition: BoundMethod.php:9
ZM\Utils\ReflectionUtil
Definition: ReflectionUtil.php:10
segment
segment(string $type, array $data=[])
Definition: global_functions.php:113
ZM\Container\__construct
__construct()
Definition: ContainerTrait.php:50
ZM\Store\Database\DBConnection\commit
commit()
Definition: DBConnection.php:102
ZM\Store\Database\DBConnection\__construct
__construct($params)
Definition: DBConnection.php:19
ZM\Annotation\AnnotationParser\__construct
__construct(bool $with_internal_parsers=true)
Definition: AnnotationParser.php:50
ZM\Annotation\AnnotationParser
Definition: AnnotationParser.php:20
ZM\Annotation\Framework\BindEvent\setLevel
setLevel($level)
Definition: BindEvent.php:43
ZM\Utils\CatCode
Definition: CatCode.php:9
ZM_VERSION
const ZM_VERSION
Definition: global_defines_app.php:15
ZM\Bootstrap\LoadGlobalDefines
Definition: LoadGlobalDefines.php:7
ZM\Container\ContainerServicesProvider\cleanup
cleanup()
Definition: ContainerServicesProvider.php:56
ZM\Process\ProcessStateManager\$process_mode
static array $process_mode
Definition: ProcessStateManager.php:12
ZM\Container\ContainerInterface\bind
bind(string $abstract, $concrete=null, bool $shared=false)
TRUE_LIST
const TRUE_LIST
Definition: global_defines_app.php:18
ZM\Annotation\OneBot\BotAction\setLevel
setLevel($level)
Definition: BotAction.php:29
zm_dir
if(function_exists('zm_internal_errcode')) zm_dir(string $dir)
Definition: global_functions.php:29
ZM\Container\ContainerInterface\bound
bound(string $abstract)
ZM\Store\Database\DBStatementWrapper\fetchAssociative
fetchAssociative()
Definition: DBStatementWrapper.php:60
ZM\Store\Database\SQLiteDriver\connect
connect(array $params, $username=null, $password=null, array $driverOptions=[])
Definition: SQLiteDriver.php:13
ZM\Store\Database\DBStatementWrapper\fetchAllAssociativeIndexed
fetchAllAssociativeIndexed()
Definition: DBStatementWrapper.php:126
ZM\Store\Database\DBConnection\quote
quote($value, $type=ParameterType::STRING)
Definition: DBConnection.php:63
ZM\Container\hasParameterOverride
hasParameterOverride(\ReflectionParameter $parameter)
Definition: ContainerTrait.php:585
ZM\Exception\InterruptException\__construct
__construct(public $return_var=null, $message='', $code=0, \Throwable $previous=null)
Definition: InterruptException.php:9
ZM\Event\Listener\ManagerEventListener
Definition: ManagerEventListener.php:11
ZM\Event\Listener\MasterEventListener\onMasterStop
onMasterStop()
Definition: MasterEventListener.php:51
ZM\Annotation\Middleware
Definition: Middleware.php:5
ZM\Event\Listener\MasterEventListener
Definition: MasterEventListener.php:15
LOAD_MODE
const LOAD_MODE
Definition: global_defines_app.php:54
ZM\Event\EventDispatcher
Definition: EventDispatcher.php:9
ZM\Plugin\ZMPlugin\$bot_events
array $bot_events
Definition: ZMPlugin.php:20
ZM\Store\Database\DBWrapper\iterateAssociative
iterateAssociative(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:306
ZM\Middleware\MiddlewareInterface
Definition: MiddlewareInterface.php:7
ZM\Store\Database\DBStatementWrapper\fetchAllNumeric
fetchAllNumeric()
Definition: DBStatementWrapper.php:87
ZM\Store\Database\DBStatement\bindValue
bindValue($param, $value, $type=ParameterType::STRING)
Definition: DBStatement.php:67
ZM\Config\ZMConfig\DEFAULT_CONFIG_PATH
const DEFAULT_CONFIG_PATH
Definition: ZMConfig.php:29
ZM\Store\Database\SQLiteDriver\getDatabase
getDatabase($conn)
Definition: SQLiteDriver.php:34
ZM\Annotation\OneBot\BotActionResponse\__construct
__construct(public ?int $retcode=null, public int $level=20)
Definition: BotActionResponse.php:23
ZM\Container\ClassAliasHelper\addAlias
static addAlias(string $class, string $alias)
Definition: ClassAliasHelper.php:23
ZM\Container\getParameterTypeOverride
getParameterTypeOverride(\ReflectionParameter $parameter)
Definition: ContainerTrait.php:623
ZM\Exception\ZMKnownException
Definition: ZMKnownException.php:10
ZM\Container\ClassAliasHelper
Definition: ClassAliasHelper.php:10
ZM\Command\Command\$input
InputInterface $input
Definition: Command.php:18
ZM\Event
Definition: EventDispatcher.php:5
ZM\Annotation\AnnotationParser\generateAnnotationList
generateAnnotationList()
Definition: AnnotationParser.php:219
ZM\Event\EventProvider\getEventListeners
getEventListeners(string $event_name)
Definition: EventProvider.php:56
ZM\Annotation\AnnotationHandler\setRuleCallback
setRuleCallback(callable $rule)
Definition: AnnotationHandler.php:63
ZM\Store\Database
Definition: DBConnection.php:7
ZM\Container\$log_prefix
string $log_prefix
Definition: ContainerTrait.php:28
ZM\Store\Database\DBWrapper\setRollbackOnly
setRollbackOnly()
Definition: DBWrapper.php:560
ZM\Store\Database\DBWrapper\fetchAllNumeric
fetchAllNumeric(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:199
ZM\Command\Server\ServerStatusCommand\execute
execute(InputInterface $input, OutputInterface $output)
Definition: ServerStatusCommand.php:14
ZM\Utils\ReflectionUtil\isNonStaticMethod
static isNonStaticMethod(callable|array|string $callback)
Definition: ReflectionUtil.php:84
ZM\Context\Trait
Definition: HttpTrait.php:5
ZM\Container\isBuildable
isBuildable(mixed $concrete, string $abstract)
Definition: ContainerTrait.php:696
ZM\Store\Database\DBStatement
Definition: DBStatement.php:14
ZM\Command\Server\ServerStopCommand
Definition: ServerStopCommand.php:16
ZM\Store\Database\DBException
Definition: DBException.php:9
ZM\Store\Database\DBWrapper\getConnection
getConnection()
Definition: DBWrapper.php:590
ZM\Annotation\Interfaces\Rule\getRule
getRule()
ZM\Utils\EasterEgg
Definition: EasterEgg.php:7
ZM\Store\Database\DBWrapper\__construct
__construct(string $name)
Definition: DBWrapper.php:21
ZM\Bootstrap\LoadConfiguration
Definition: LoadConfiguration.php:10
ZM\Store\Database\DBWrapper\fetchFirstColumn
fetchFirstColumn(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:270
ZM\Utils\ConnectionUtil\getConnection
static getConnection(int $fd)
Definition: ConnectionUtil.php:82
ZM\ZMApplication\run
run()
Definition: ZMApplication.php:45
ZM\Container\ContainerInterface\factory
factory(string $abstract)
ZM\Config\ZMConfig\loadFiles
loadFiles()
Definition: ZMConfig.php:93
ZM\Container\bindIf
bindIf(string $abstract, $concrete=null, bool $shared=false)
Definition: ContainerTrait.php:149
ZM\Annotation\OneBot\CommandArgument
Definition: CommandArgument.php:21
ZM\Plugin\PluginManager\$default_entries
static array $default_entries
Definition: PluginManager.php:27
ZM\Command\Command\detail
detail(string $message, bool $newline=true)
Definition: Command.php:120
ZM\Plugin\OneBot12Adapter\handleWSReverseMessage
handleWSReverseMessage(WebSocketMessageEvent $event)
Definition: OneBot12Adapter.php:160
ZM\Bootstrap
Definition: HandleExceptions.php:5
ZM\Container\Container\make
make(string $abstract, array $parameters=[])
Definition: Container.php:47
ZM\Store\Lock\FileLock\unlock
static unlock(string $name)
Definition: FileLock.php:39
ZM\Store\Database\DBWrapper\setTransactionIsolation
setTransactionIsolation(int $level)
Definition: DBWrapper.php:131
ZM\Store\Database\DBWrapper\quoteIdentifier
quoteIdentifier(string $str)
Definition: DBWrapper.php:176
ZM\Exception\ConfigException\LOAD_CONFIG_FAILED
const LOAD_CONFIG_FAILED
Definition: ConfigException.php:11
ZM\Store
zm_exec
zm_exec(string $cmd)
Definition: global_functions.php:42
ZM\Store\Database\DBWrapper\fetchAllAssociative
fetchAllAssociative(string $query, array $params=[], array $types=[])
Definition: DBWrapper.php:217
ZM\Command
ZM\Command\Command\$output
OutputInterface $output
Definition: Command.php:25
ZM\Plugin\ZMPlugin\__construct
__construct(string $dir)
Definition: ZMPlugin.php:31
ZM\Exception\InitException
Definition: InitException.php:10
ZM\Config\ConfigTracer\getTraceOf
getTraceOf(string $key)
Definition: ConfigTracer.php:32
ZM\Annotation\AnnotationHandler\interrupt
static interrupt(mixed $return_var=null)
Definition: AnnotationHandler.php:53
ZM\Annotation\OneBot\BotCommand\setLevel
setLevel($level)
Definition: BotCommand.php:95