Skip to main content

Module plugin

Module plugin 

Source
Expand description

Plugin system for extending the analyzer with custom type inference and hooks.

Re-exports§

pub use registry::PluginRegistry;
pub use context::*;
pub use error::*;
pub use hook::*;
pub use plugin::*;
pub use provider::*;

Modules§

context
Context types for providers and hooks.
error
Error types for the plugin system.
hook
Hook traits for the analyzer plugin system.
libraries
Library-specific providers for PHP stdlib, PSL, and Flow-PHP.
plugin
Plugin trait and metadata for analyzer plugins.
provider
Provider traits for the analyzer plugin system.
registry
Plugin registry for managing and dispatching to providers and hooks.

Functions§

available_plugins
Returns a list of all available plugins with their metadata.
create_registry
Creates a plugin registry with all library providers enabled.
create_registry_with_plugins
Creates a plugin registry with the specified plugins enabled.
resolve_plugin_name
Resolves a plugin name or alias to its canonical id.