Power_Automate_Provider::register()
Binds and sets up implementations.
Source
File: src/Common/Event_Automator/Power_Automate/Power_Automate_Provider.php
public function register() {
if ( ! self::is_active() ) {
return;
}
// Register the SP on the container
$this->container->singleton( 'tec.automator.power.automate.provider', $this );
$this->add_actions();
$this->add_filters();
$this->container->singleton( Api::class );
$this->container->singleton( Swagger_Documentation::class );
/**
* Allows filtering of the capability required to use the Power Automate integration ajax features.
*
* @since 1.4.0
*
* @param string $ajax_capability The capability required to use the ajax features, default manage_options.
*/
$ajax_capability = apply_filters( 'tec_event_automator_power_automate_admin_ajax_capability', 'manage_options' );
$this->route_admin_by_nonce( $this->admin_routes(), $ajax_capability );
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |