Application
class Application extends Application
CLI 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 | 
| protected Reactor | $reactor | Reactor instance. | 
Methods
Starts the application and returns a singleton instance of the application.
Returns the Mako environment. NULL is returned if no environment is specified.
Sets up the framework core.
Runs the application.
Creates a input instance.
Creates an output instance.
Creates a reactor instance.
Loads the reactor ASCII logo.
Register and handle global arguments.
Starts the reactor.
Returns all registered commands.
Details
        in Application at         line 98
                            
    __construct(string $applicationPath)
        
    
    Constructor.
        in Application at         line 112
                static            Application
    start(string $applicationPath)
        
    
    Starts the application and returns a singleton instance of the application.
        in Application at         line 129
                static            Application
    instance()
        
    
    Returns a singleton instance of the application.
        in Application at         line 144
                            float
    getStartTime()
        
    
    Returns the application start time.
        in Application at         line 154
                            Container
    getContainer()
        
    
    Returns the container instance.
        in Application at         line 164
                            Config
    getConfig()
        
    
    Returns the config instance.
        in Application at         line 174
                            string
    getCharset()
        
    
    Returns the application charset.
        in Application at         line 184
                            string
    getLanguage()
        
    
    Returns the application language.
        in Application at         line 194
                            
    setLanguage(array $language)
        
    
    Sets the application language settings.
        in Application at         line 209
                            string
    getPath()
        
    
    Gets the application path.
        in Application at         line 219
                            array
    getPackages()
        
    
    Returns all the application packages.
        in Application at         line 230
                            Package
    getPackage(string $package)
        
    
    Returns a package by its name.
        in Application at         line 246
                            string
    getNamespace(bool $prefix = false)
        
    
    Returns the application namespace.
        in Application at         line 263
                            bool
    isCommandLine()
        
    
    Is the application running in the CLI?
        in Application at         line 273
                            string|null
    getEnvironment()
        
    
    Returns the Mako environment. NULL is returned if no environment is specified.
        in Application at         line 281
                    protected        
    configure()
        
    
    Configure.
        in Application at         line 309
                    protected        
    serviceRegistrar(string $type)
        
    
    Registers services in the container.
        in Application at         line 320
                    protected        
    registerCLIServices()
        
    
    Registers command line services.
        in Application at         line 328
                    protected        
    registerWebServices()
        
    
    Registers web services.
        in Application at         line 336
                    protected        
    registerServices()
        
    
    Register services in the container.
        in Application at         line 359
                    protected        
    registerClassAliases()
        deprecated
    
    deprecated
Registers class aliases.
        in Application at         line 374
                    protected        
    bootstrap()
        
    
    Loads the application bootstrap file.
        in Application at         line 387
                    protected        
    packageBooter(string $type)
        
    
    Boots packages.
        in Application at         line 402
                    protected        
    bootCliPackages()
        
    
    Boots command line packages.
        in Application at         line 410
                    protected        
    bootWebPackages()
        
    
    Boots web packages.
        in Application at         line 418
                    protected        
    bootPackages()
        
    
    Boot packages.
        in Application at         line 439
                    protected        Container
    containerFactory()
        
    
    Creates a container instance.
        in Application at         line 449
                    protected        Config
    configFactory()
        
    
    Creates a configuration instance.
        at         line 172
                    protected        
    initialize()
        
    
    Sets up the framework core.
        in Application at         line 485
                            $this
    boot()
        
    
    Boots the application.
        at         line 243
                            
    run()
        
    
    Runs the application.
        at         line 65
                    protected        Input
    inputFactory()
        
    
    Creates a input instance.
        at         line 79
                    protected        Output
    outputFactory()
        
    
    Creates an output instance.
        at         line 89
                    protected        Reactor
    reactorFactory()
        
    
    Creates a reactor instance.
        at         line 99
                    protected        string
    loadLogo()
        
    
    Loads the reactor ASCII logo.
        at         line 109
                    protected        
    registerAndhandleGlobalArguments()
        
    
    Register and handle global arguments.
        at         line 146
                    protected        
    startReactor()
        
    
    Starts the reactor.
        at         line 184
                    protected        array
    getCommands()
        
    
    Returns all registered commands.