com\setasign\SetaFramework\Bootstrap
Bootstrap
File: /SetaFramework/src/Bootstrap/Bootstrap.php
Class hierarchy
Summary
Methods
- __construct()
- __wakeup()
- configureDi()
- getDefaultDomain()
- getDi()
- isDebug()
- resetState()
- setBootstrapLogConfig()
- setCacheHandlerConfig()
- setDatabaseConnectionConfig()
- setDebug()
- setDefaultDomain()
- setLogHandlerConfig()
- setupCacheBuilder()
- setupDatabaseConnectionManager()
- setupErrorHandler()
- setupLogBuilder()
- setupLogHandler()
- shutdownFunction()
Constants
EVENT_SHUTDOWN_HANDLER
Will be called after script execution finishes or exit() is called.
Note: HttpBootstrap and Bootstrap share the same shutdown-event.
Show also shutdown functions.
extraParams:
'bootstrap' => Bootstrap
Properties
$defaultDomain
protected Bootstrap::$defaultDomain
$di
protected ?\com\setasign\SetaFramework\Di\Di Bootstrap::$di
Static Methods
prepare()
Helper method if you want to call the bootstrap manually.
Parameters
- $configFile : string
- $configParams : array
Exceptions
Throws ConfigReaderException
registerShutdownFunction()
WARNING: This method is marked as deprecated!
Use eventManager Bootstrap::EVENT_SHUTDOWN_HANDLER directly.
You should always use this method instead of "register_shutdown_function" to prevent memory leaks in application server structure.
Parameters
- $function : callable
Methods
__construct()
setDatabaseConnectionConfig()
Parameters
setupCacheBuilder()
final protected Bootstrap::setupCacheBuilder (
void
): \com\setasign\SetaFramework\SimpleCache\CacheBuilderInterfaceExceptions
Throws \Throwable
setupDatabaseConnectionManager()
final protected Bootstrap::setupDatabaseConnectionManager (
void
): \com\setasign\SetaFramework\Database\DatabaseConnectionManagerExceptions
Throws \Throwable
setupLogBuilder()
final protected Bootstrap::setupLogBuilder (
void
): \com\setasign\SetaFramework\Log\LogBuilderInterfaceExceptions
Throws \Throwable
setupLogHandler()
Exceptions
Throws \Throwable
