The abstract AbstractApp class is the blueprint for the MVC's main engine.
Methods
Protected method : this class cannot be copied because it is a Singleton.
__clone() : \Ascmvc\void.
abstract
This class should be a Singleton, but instantiation is needed for compatibility with Swoole.
__construct() : \Ascmvc\void.
abstract
Adds an element to the application's base configuration.
appendBaseConfig(string $name, array $array) : \Ascmvc\AbstractApp
abstract
Builds the baseConfig array from the various configuration files.
boot() : array
abstract
Sends the final response to the output buffer.
display(\Laminas\Diactoros\Response $response) : void
abstract
Arguments
$response
\Laminas\Diactoros\Response
Gets the application's base configuration.
getBaseConfig() : array
abstract
Gets what is useful to the controllers from the application's base configuration.
getBaseConfigForControllers() : array
abstract
Gets the AbstractController object.
getController() : \Ascmvc\AbstractController|null
abstract
Gets the AbstractControllerManager object.
getControllerManager() : \Ascmvc\AbstractControllerManager
abstract
Gets the Controller's output.
getControllerOutput() : \Laminas\Diactoros\Response|array|string|null
abstract
Response
\Laminas\Diactoros\Response|array|string|null
Gets the AscmvcEvent object.
getEvent() : \Ascmvc\Mvc\AscmvcEvent
abstract
Gets the AscmvcEventManager object.
getEventManager() : \Ascmvc\Mvc\AscmvcEventManager
abstract
Static method : returns the Singleton instance of this class.
getInstance() : \Ascmvc\AbstractApp
static
Gets the ServerRequestInterface object.
getRequest() : \Psr\Http\Message\ServerRequestInterface
abstract
Response
\Psr\Http\Message\ServerRequestInterface
Gets the Response object.
getResponse() : \Psr\Http\Message\ResponseInterface
abstract
Response
\Psr\Http\Message\ResponseInterface
Gets the AbstractRouter object.
getRouter() : \Ascmvc\AbstractRouter
abstract
Gets the Pimple\Container object.
getServiceManager() : \Pimple\Container
abstract
Response
\Pimple\Container
Gets the SessionManager.
getSessionManager() : \Ascmvc\Session\SessionManager|null
abstract
Gets the Template Manager object.
getViewObject() : \League\Plates\Engine|\Smarty|\Twig_Environment
abstract
Response
\League\Plates\Engine|\Smarty|\Twig_Environment
Initializes the application with the parameters that
are given in the baseConfig array.
initialize(array &$baseConfig) : \Ascmvc\AbstractApp
abstract
Renders the response.
render(\Laminas\Diactoros\Response|array|string $controllerOutput) : \Laminas\Diactoros\Response
abstract
Arguments
$controllerOutput
\Laminas\Diactoros\Response|array|string
Response
\Laminas\Diactoros\Response
The application's main runtime method. It executes the Application's bootstrap events.
run() : void
abstract
Sets the AbstractController object.
setController(\Ascmvc\AbstractController &$controller) : \Ascmvc\AbstractApp
abstract
Sets the AbstractControllerManager object.
setControllerManager(\Ascmvc\AbstractControllerManager &$controllerManager) : \Ascmvc\AbstractApp
abstract
Sets the Controller's output.
setControllerOutput(array $controllerOutput) : \Ascmvc\AbstractApp
abstract
Sets the AscmvcEvent object.
setEvent(\Ascmvc\Mvc\AscmvcEvent &$event) : \Ascmvc\AbstractApp
abstract
Sets the AscmvcEventManager object.
setEventManager(\Ascmvc\Mvc\AscmvcEventManager &$eventManager) : \Ascmvc\AbstractApp
abstract
Sets the ServerRequestInterface object.
setRequest(\Psr\Http\Message\ServerRequestInterface $request) : \Psr\Http\Message\ServerRequestInterface
abstract
Arguments
$request
\Psr\Http\Message\ServerRequestInterface
Response
\Psr\Http\Message\ServerRequestInterface
Sets the Response object.
setResponse(\Psr\Http\Message\ResponseInterface $response) : \Psr\Http\Message\ResponseInterface
abstract
Arguments
$response
\Psr\Http\Message\ResponseInterface
Response
\Psr\Http\Message\ResponseInterface
Sets the AbstractRouter object.
setRouter(\Ascmvc\AbstractRouter &$router) : \Ascmvc\AbstractApp
abstract
Sets the Pimple\Container object.
setServiceManager(\Pimple\Container &$serviceManager) : \Ascmvc\AbstractApp
abstract
Sets the SessionManager.
setSessionManager(\Ascmvc\Session\SessionManager $sessionManager) : \Ascmvc\Session\SessionManager|null
abstract
Sets the Template Manager object.
setViewObject( &$viewObject) : \Ascmvc\AbstractApp
abstract
Properties
Contains the Singleton instance of this class.
appInstance : \Ascmvc\AbstractApp|null
static
Array contains all of the AbstractApp's basic configurations.
baseConfig : array|null
Contains a reference to a Request instance.
request : \Laminas\Diactoros\Request|null
Type(s)
\Laminas\Diactoros\Request|null
Contains a reference to a Response instance.
response : \Laminas\Diactoros\Response|null
Type(s)
\Laminas\Diactoros\Response|null
Contains a reference to the SessionManager instance.
sessionManager : \Ascmvc\Session\SessionManager|null
Contains a reference to a \Pimple\Container instance.
serviceManager : \Pimple\Container|null
Type(s)
\Pimple\Container|null
Contains a reference to the AscmvcEventManager instance.
eventManager : \Ascmvc\Mvc\AscmvcEventManager|null
Contains a reference to the AscmvcEvent instance.
event : \Ascmvc\Mvc\AscmvcEvent|null
Contains a reference to a Template Manager instance.
viewObject : Object|null
Contains a reference to an AbstractRouter instance.
router : \Ascmvc\AbstractRouter|null
Contains a reference to a AbstractControllerManager instance.
controllerManager : \Ascmvc\AbstractControllerManager|null
Contains a reference to a AbstractController instance.
controller : \Ascmvc\AbstractController|null
Contains the controller's output.
controllerOutput : \Laminas\Diactoros\Response|array|string|null
Type(s)
\Laminas\Diactoros\Response|array|string|null