class ServiceProvider extends PoppyServiceProvider

Traits

MigrationTrait

Properties

protected array $listens

event listener

from  PoppyServiceProvider
protected array $policies policy from  PoppyServiceProvider

Methods

requireMigrations(string $module)

Require (once) all migration files for the supplied module.

string
getMigrationPath(string $module)

Get migration directory path.

void
boot()

Bootstrap the application events.

null
getModule($args)

No description

bootPolicies()

注册系统中用到的策略

bootListener()

监听核心事件

string
consoleLog()

consoleLog

void
register()

Register the service provider.

Details

in MigrationTrait at line 18
protected requireMigrations(string $module)

Require (once) all migration files for the supplied module.

Parameters

string $module module

in MigrationTrait at line 36
protected string getMigrationPath(string $module)

Get migration directory path.

Parameters

string $module module

Return Value

string

at line 18
void boot()

Bootstrap the application events.

Return Value

void

Exceptions

ModuleNotFoundException

null getModule($args)

No description

Parameters

$args

Return Value

null

Exceptions

ModuleNotFoundException

protected bootPolicies()

注册系统中用到的策略

in PoppyServiceProvider at line 107
protected bootListener()

监听核心事件

in PoppyServiceProvider at line 120
protected string consoleLog()

consoleLog

Return Value

string

at line 29
void register()

Register the service provider.

Return Value

void