Application
abstract class Application
Application.
Properties
| static protected Application | $instance | Singleton instance of self. | |
| protected float | $startTime | Application start time. | |
| protected Container | $container | Container. | |
| protected Config | $config | Config instance. | |
| protected string | $charset | Application charset. | |
| protected string | $language | Application language. | |
| protected string | $applicationPath | Application path. | |
| protected array | $packages | Booted packages. | 
Methods
Constructor.
Starts the application and returns a singleton instance of the application.
Returns a singleton instance of the application.
Returns the application start time.
Returns the container instance.
Returns the application charset.
Returns the application language.
Sets the application language settings.
Gets the application path.
Returns all the application packages.
Returns a package by its name.
Returns the application namespace.
Is the application running in the CLI?
Returns the Mako environment. NULL is returned if no environment is specified.
Configure.
Registers services in the container.
Registers command line services.
Registers web services.
Register services in the container.
Loads the application bootstrap file.
Boots packages.
Boots command line packages.
Boots web packages.
Boot packages.
Creates a container instance.
Creates a configuration instance.
Sets up the framework core.
Boots the application.
Runs the application.
Details
        at         line 96
                            
    __construct(string $applicationPath)
        
    
    Constructor.
        at         line 110
                static            Application
    start(string $applicationPath)
        
    
    Starts the application and returns a singleton instance of the application.
        at         line 127
                static            Application
    instance()
        
    
    Returns a singleton instance of the application.
        at         line 142
                            float
    getStartTime()
        
    
    Returns the application start time.
        at         line 152
                            Container
    getContainer()
        
    
    Returns the container instance.
        at         line 162
                            Config
    getConfig()
        
    
    Returns the config instance.
        at         line 172
                            string
    getCharset()
        
    
    Returns the application charset.
        at         line 182
                            string
    getLanguage()
        
    
    Returns the application language.
        at         line 192
                            
    setLanguage(array $language)
        
    
    Sets the application language settings.
        at         line 207
                            string
    getPath()
        
    
    Gets the application path.
        at         line 217
                            array
    getPackages()
        
    
    Returns all the application packages.
        at         line 228
                            Package
    getPackage(string $package)
        
    
    Returns a package by its name.
        at         line 244
                            string
    getNamespace(bool $prefix = false)
        
    
    Returns the application namespace.
        at         line 261
                            bool
    isCommandLine()
        
    
    Is the application running in the CLI?
        at         line 271
                            string|null
    getEnvironment()
        
    
    Returns the Mako environment. NULL is returned if no environment is specified.
        at         line 279
                    protected        
    configure()
        
    
    Configure.
        at         line 307
                    protected        
    serviceRegistrar(string $type)
        
    
    Registers services in the container.
        at         line 318
                    protected        
    registerCLIServices()
        
    
    Registers command line services.
        at         line 326
                    protected        
    registerWebServices()
        
    
    Registers web services.
        at         line 334
                    protected        
    registerServices()
        
    
    Register services in the container.
        at         line 355
                    protected        
    bootstrap()
        
    
    Loads the application bootstrap file.
        at         line 368
                    protected        
    packageBooter(string $type)
        
    
    Boots packages.
        at         line 383
                    protected        
    bootCliPackages()
        
    
    Boots command line packages.
        at         line 391
                    protected        
    bootWebPackages()
        
    
    Boots web packages.
        at         line 399
                    protected        
    bootPackages()
        
    
    Boot packages.
        at         line 420
                    protected        Container
    containerFactory()
        
    
    Creates a container instance.
        at         line 430
                    protected        Config
    configFactory()
        
    
    Creates a configuration instance.
        at         line 438
                    protected        
    initialize()
        
    
    Sets up the framework core.
        at         line 466
                            $this
    boot()
        
    
    Boots the application.
        at         line 496
            abstract                
    run()
        
    
    Runs the application.