Application
class Application extends Application
Web application.
Properties
static protected Application | $instance | Singleton instance of self. | from Application |
protected float | $startTime | Application start time. | from Application |
protected Container; | $container | Container. | from Application |
protected Config | $config | Config instance. | from Application |
protected string | $charset | Application charset. | from Application |
protected string | $language | Application language. | from Application |
protected string | $applicationPath | Application path. | from Application |
protected array | $packages | Booted packages. | from Application |
Methods
Starts the application and returns a singleton instance of the application.
Returns the Mako environment. NULL is returned if no environment is specified.
Runs the application.
Details
in Application at line 98
__construct(string $applicationPath)
Constructor.
in Application at line 113
static Application
start(string $applicationPath)
Starts the application and returns a singleton instance of the application.
in Application at line 128
static Application
instance()
Returns a singleton instance of the application.
in Application at line 143
float
getStartTime()
Returns the application start time.
in Application at line 153
Container
getContainer()
Returns the container instance.
in Application at line 163
Config
getConfig()
Returns the config instance.
in Application at line 173
string
getCharset()
Returns the application charset.
in Application at line 183
string
getLanguage()
Returns the application language.
in Application at line 193
setLanguage(array $language)
Sets the application language settings.
in Application at line 208
string
getPath()
Gets the application path.
in Application at line 218
array
getPackages()
Returns all the application packages.
in Application at line 229
Package
getPackage(string $package)
Returns a package by its name.
in Application at line 245
string
getNamespace(bool $prefix = false)
Returns the application namespace.
in Application at line 262
bool
isCommandLine()
Is the application running in the CLI?
in Application at line 272
string|null
getEnvironment()
Returns the Mako environment. NULL is returned if no environment is specified.
in Application at line 280
protected
configure()
Configure.
in Application at line 308
protected
serviceRegistrar(string $type)
Registers services in the container.
in Application at line 319
protected
registerCLIServices()
Registers command line services.
in Application at line 327
protected
registerWebServices()
Registers web services.
in Application at line 335
protected
registerServices()
Register services in the container.
in Application at line 356
protected
registerClassAliases()
Registers class aliases.
in Application at line 371
protected
bootstrap()
Loads the application bootstrap file.
in Application at line 384
protected
packageBooter(string $type)
Boots packages.
in Application at line 399
protected
bootCliPackages()
Boots command line packages.
in Application at line 407
protected
bootWebPackages()
Boots web packages.
in Application at line 415
protected
bootPackages()
Boot packages.
in Application at line 436
protected Container
containerFactory()
Creates a container instance.
in Application at line 446
protected Config
configFactory()
Creates a configuration instance.
in Application at line 454
protected
initialize()
Sets up the framework core.
in Application at line 480
protected
boot()
Boots the application.
at line 28
run()
Runs the application.