芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/ithemes-security-pro/core/lib/tools/Tools_Registry.php
tools[ $tool->get_slug() ] = $tool; return $this; } /** * Checks if a tool is registered. * * @param string $slug The tool slug. * * @return bool */ public function is_registered( string $slug ): bool { return isset( $this->tools[ $slug ] ); } /** * Gets a tool by slug. * * @param string $slug * * @return Tool */ public function get_tool( string $slug ): Tool { return $this->tools[ $slug ]; } /** * Gets the list of registered tools. * * @return Tool[] */ public function get_tools(): array { return $this->tools; } }