Runtime

The plugin initializes itself on action init with priority 5 (see the loading chain) so after this hook you can access the whole Runtime object with a simple wrapper class.

To get the Runtime object:

$runtime = \Notification::runtime();

To get the Runtime component:

$cache = \Notification::component( 'core_cache' );

To get plugin version:

$version = \Notification::version();

Please note the Notification class lives in the global namespace.

Last updated