Use PHP 8 Attributes for Plugin lifecycle hooks
mainWhen creating custom plugins, you can use PHP 8 attributes to control when specific logic is executed during the application boot process:
#[AfterResolving(Service::class)]: Defers execution until the specified service is resolved from the container.#[OnBoot]: Executes the plugin logic during the application'sbooting()hook.- No Attribute: If no attribute is provided, the plugin must be explicitly called via
PluginHandler::handle().