Magic call method.
Description
Parameters
- $method_name
-
(string) (Required) Method name. Should be the name of a service.
- $args
-
(array) (Required) Method arguments. Unused here.
Return
(awsmug\Torro_Forms\Modules\Module|Leaves_And_Love\Plugin_Lib\Service|null) The module, service instance, or null if neither exist.
Source
File: src/modules/module-manager.php
public function __call( $method_name, $args ) { if ( 'apiapi' === $method_name ) { return torro()->apiapi(); } if ( 'logger' === $method_name ) { return torro()->logger(); } if ( isset( $this->modules[ $method_name ] ) ) { return $this->modules[ $method_name ]; } return $this->__callService( $method_name, $args ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |