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