Skip to main content

mago_analyzer/plugin/libraries/flow_php/
mod.rs

1//! Flow-PHP providers.
2
3mod type_structure;
4
5pub use type_structure::TypeStructureProvider;
6
7use crate::plugin::Plugin;
8use crate::plugin::PluginMeta;
9use crate::plugin::PluginRegistry;
10
11/// Plugin providing type inference for flow-php/etl package.
12pub struct FlowPhpPlugin;
13
14static META: PluginMeta = PluginMeta::new(
15    "flow-php",
16    "Flow-PHP",
17    "Type providers for flow-php/etl package",
18    &["flow", "flow-etl"],
19    false, // not default enabled
20);
21
22impl Plugin for FlowPhpPlugin {
23    fn meta(&self) -> &'static PluginMeta {
24        &META
25    }
26
27    fn register(&self, registry: &mut PluginRegistry) {
28        registry.register_function_provider(TypeStructureProvider);
29    }
30}