ServiceProvider
class ServiceProvider extends PoppyServiceProvider
Traits
PoppyTrait
MigrationTrait
Properties
protected array | $listens | event listener |
from PoppyServiceProvider |
protected array | $policies | policy | from PoppyServiceProvider |
$listens; |
Methods
requireMigrations(string $module)
Require (once) all migration files for the supplied module.
from
MigrationTrait
void
boot()
Bootstrap the module services.
void
register()
Register the module services.
array
provides()
No description
Details
in
MigrationTrait at line 17
protected
requireMigrations(string $module)
Require (once) all migration files for the supplied module.
in
MigrationTrait at line 35
protected string
getMigrationPath(string $module)
Get migration directory path.
at line 22
void
boot()
Bootstrap the module services.
in
PoppyServiceProvider at line 77
null
getModule($args)
No description
in
PoppyServiceProvider at line 95
protected
bootPolicies()
注册系统中用到的策略
in
PoppyServiceProvider at line 105
protected
bootListener()
监听核心事件
in
PoppyServiceProvider at line 118
protected string
consoleLog()
consoleLog
in
PoppyTrait at line 41
protected AuthManager
pyAuth()
get auth
in
PoppyTrait at line 50
protected Translator
pyTranslator()
get translator
in
PoppyTrait at line 60
protected Repository
pyConfig()
Get configuration instance.
in
PoppyTrait at line 70
protected DatabaseManager
pyDb()
get db
in
PoppyTrait at line 79
protected Kernel
pyConsole()
Get console instance.
in
PoppyTrait at line 88
protected Container
pyContainer()
Get IoC Container.
in
PoppyTrait at line 97
protected Mailer
pyMailer()
Get mailer instance.
in
PoppyTrait at line 106
protected SessionManager|Store
pySession()
Get session instance.
in
PoppyTrait at line 115
protected Request
pyRequest()
get request
in
PoppyTrait at line 125
protected Redirector
pyRedirector()
get redirector
in
PoppyTrait at line 134
protected Factory
pyValidation()
get validation
in
PoppyTrait at line 144
protected Dispatcher
pyEvent()
get event
in
PoppyTrait at line 154
protected LoggerInterface
pyLogger()
get logger
in
PoppyTrait at line 164
protected ResponseFactory
pyResponse()
get response
in
PoppyTrait at line 174
protected Filesystem
pyFile()
get file
in
PoppyTrait at line 184
protected UrlGenerator
pyUrl()
get url
in
PoppyTrait at line 195
protected mixed
pyCache(string $tag = '')
get cache
in
PoppyTrait at line 209
protected RedisManager
pyRedis()
get redis
in
PoppyTrait at line 218
protected Factory
pyView()
get view
in
PoppyTrait at line 227
protected Poppy
pyPoppy()
get poppy
in
PoppyTrait at line 236
protected Ini
pyIni()
Ini Parser
in
PoppyTrait at line 245
protected Xml
pyXml()
Ini Parser
in
PoppyTrait at line 254
protected Yaml
pyYaml()
Yaml Parser
at line 33
void
register()
Register the module services.
at line 41
array
provides()
No description