. namespace core\hook; /** * This interface describes a class which can discover all hook * classes of a plugin. * * To add new discovery agent in your plugin you need to add your_plugin\hooks * class that implements this interface. * * @package core * @copyright Andrew Lyons * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ interface discovery_agent { /** * Returns a list of hooks for component. * * @return array */ public static function discover_hooks(): array; }