com\setasign\SetaFramework\Application

HttpApplicationInterface Class ApplicationInterface

File: /SetaFramework/src/Application/HttpApplicationInterface.php

Implemented in

Implements

Summary

Methods

__construct()

ApplicationInterface constructor.

Parameters
$bootstrap : \com\setasign\SetaFramework\Bootstrap\Bootstrap
 
$name : string
 
$config : ApplicationConfig
 

getConfig()

getDi()

abstract public ApplicationInterface::getDi (
void
): ApplicationDi

getName()

abstract public ApplicationInterface::getName (
void
): string

Returns the name of the application, with which it was initialized

getRequestPathPrefix()

abstract public HttpApplicationInterface::getRequestPathPrefix (
void
): ?string

Returns the request path prefix

Return Values

If used in cli this will be null.

getViewDirectory()

abstract public HttpApplicationInterface::getViewDirectory (
void
): string

getViewHelperNamespaces()

abstract public HttpApplicationInterface::getViewHelperNamespaces (
void
): array

setupRoutes()

Setup Routes for the Application

Parameters
$router : \com\setasign\SetaFramework\Router\Router

The main Router-instance

Exceptions

Throws \com\setasign\SetaFramework\Router\RouteException