NAME

Mojolicious::Service - Mojolicious框架中所有Service的基类(具体的Service需要用户实现)!

SYNOPSIS

use Mojolicious::Service
my $service = Mojolicious::Service->new({
      dbi=>DBIx::Custom->new(),
      models=>{}
  });
  
my $user->some_mothed(arg1,arg2,……);

DESCRIPTION

Mojolicious框架中所有Service的基类(具体的Service需要用户实现)!

ATTRIBUTES

dbi

dbi 是为service提供数据库操作接口的对象。

models

models 是为service提供数据模型操作接口的对象。

app

当前应用程序的引用,通常是Mojolicious对象。

c

当前控制器的引用,通常是Mojolicious::Controller子类的对象。

METHODS

model

根据model的名称从 models 属性中获取model。

AUTHOR

wfso, <461663376@qq.com>

BUGS

Please report any bugs or feature requests to bug-mojolicious-Services at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Mojolicious-Services. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Mojolicious::Service

You can also look for information at: