Convos::Plugin - Base class for Convos plugins
package Convos::Plugin::CoolPlugin; use Mojo::Base "Convos::Plugin"; sub register { my ($self, $app, $config) = @_; $app->core->backend->on(connection => sub { my ($backend, $connection) = @_; warn "New connection!"; }); }
Convos::Plugin is the base class for Convos plugins, which all plugins need to inherit from.
$path = $self->uri;
Holds a Mojo::Path object, with the URI to where this object should be stored.
$self->add_backend_helpers($app);
Can be used to add "load" and "save" helpers for the given plugin.
Convos and Mojolicious::Plugin.
To install Convos, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convos
CPAN shell
perl -MCPAN -e shell install Convos
For more information on module installation, please visit the detailed CPAN module installation guide.