PHP Class Dietcube\Application

Inheritance: use trait Dietcube\Components\ContainerAwareTrait
显示文件 Open project: mercari/dietcube Class Usage Examples

Protected Properties

Property Type Description
$app_namespace
$app_root
$config Config
$debug
$dirs
$env
$host
$path
$port
$protocol
$url

Public Methods

Method Description
__construct ( $app_root, $env )
config ( Pimple\Container $container )
createController ( $controller_name )
createLogger ( $path, $level = Logger::WARNING )
getAppNamespace ( )
getAppRoot ( )
getConfig ( ) : Config
getConfigDir ( )
getConfigFiles ( )
getContainer ( ) : Pimple\Container
getControllerByHandler ( $handler )
getEnv ( ) : string
getHost ( )
getPath ( )
getPort ( )
getProtocol ( )
getResourceDir ( )
getRoute ( )
getTemplateDir ( )
getTemplateExt ( )
getTmpDir ( )
getUrl ( )
getVendorDir ( )
getWebrootDir ( )
init ( Pimple\Container $container )
initHttpRequest ( Pimple\Container $container )
isDebug ( )
loadConfig ( )
setDir ( $dirname, $path )

Protected Methods

Method Description
bootConfig ( )
detectAppNamespace ( )
getDefaultDirs ( )

Method Details

__construct() public method

public __construct ( $app_root, $env )

bootConfig() protected method

protected bootConfig ( )

config() abstract public method

abstract public config ( Pimple\Container $container )
$container Pimple\Container

createController() public method

public createController ( $controller_name )

createLogger() public method

public createLogger ( $path, $level = Logger::WARNING )

detectAppNamespace() protected method

protected detectAppNamespace ( )

getAppNamespace() public method

public getAppNamespace ( )

getAppRoot() public method

public getAppRoot ( )

getConfig() public method

public getConfig ( ) : Config
return Config

getConfigDir() public method

public getConfigDir ( )

getConfigFiles() public method

public getConfigFiles ( )

getContainer() public method

public getContainer ( ) : Pimple\Container
return Pimple\Container

getControllerByHandler() public method

public getControllerByHandler ( $handler )

getDefaultDirs() protected method

protected getDefaultDirs ( )

getEnv() public method

public getEnv ( ) : string
return string

getHost() public method

public getHost ( )

getPath() public method

public getPath ( )

getPort() public method

public getPort ( )

getProtocol() public method

public getProtocol ( )

getResourceDir() public method

public getResourceDir ( )

getRoute() public method

public getRoute ( )

getTemplateDir() public method

public getTemplateDir ( )

getTemplateExt() public method

public getTemplateExt ( )

getTmpDir() public method

public getTmpDir ( )

getUrl() public method

public getUrl ( )

getVendorDir() public method

public getVendorDir ( )

getWebrootDir() public method

public getWebrootDir ( )

init() public method

public init ( Pimple\Container $container )
$container Pimple\Container

initHttpRequest() public method

public initHttpRequest ( Pimple\Container $container )
$container Pimple\Container

isDebug() public method

public isDebug ( )

loadConfig() public method

public loadConfig ( )

setDir() public method

public setDir ( $dirname, $path )

Property Details

$app_namespace protected_oe property

protected $app_namespace

$app_root protected_oe property

protected $app_root

$config protected_oe property

protected Config,dietcube $config
return Config

$debug protected_oe property

protected $debug

$dirs protected_oe property

protected $dirs

$env protected_oe property

protected $env

$host protected_oe property

protected $host

$path protected_oe property

protected $path

$port protected_oe property

protected $port

$protocol protected_oe property

protected $protocol

$url protected_oe property

protected $url