Bluz\Application\Application
Application
- Author: Anton Shevchuk
Synopsis
- // members
- protected string $environment = 'production';
- protected $path;
- protected bool $debugFlag = false;
- protected bool $layoutFlag = true;
- // methods
- public string getEnvironment()
- public string getPath()
- public bool isDebug()
- public bool useLayout()
- public void init()
- protected void initConfig()
- protected void initRequest()
- protected void initResponse()
- protected void initRouter()
- public Response getResponse()
- public ServerRequest getRequest()
- public void run()
- public void process()
- protected void preProcess()
- protected void doProcess()
- protected void postProcess()
- public Controller dispatch()
- protected void preDispatch()
- protected void doDispatch()
- protected void postDispatch()
- public void render()
- public void end()
- // Inherited methods from Helper
- public void addHelperPath()
- public mixed __call()
- // Inherited methods from Singleton
- public static Application getInstance()
- public static void resetInstance()
Hierarchy
Members
protected
- $debugFlag — Bluz\Application\bool
- $environment — string
- $helpers — array
- $helpersPath — array
- $instance — Bluz\Application\Application
- $layoutFlag — Bluz\Application\bool
- $path — string
Methods
protected
- doDispatch() — Do dispatch
- doProcess() — Do process
- initConfig() — Initial Request instance
- initRequest() — Initial Request instance
- initResponse() — Initial Response instance
- initRouter() — Initial Router instance
- postDispatch() — Extension point: post dispatch
- postProcess() — Extension point: post process
- preDispatch() — Extension point: pre dispatch
- preProcess() — Extension point: pre process
public
- dispatch() — Dispatch controller with params
- end() — Extension point: finally method
- getEnvironment() — Get application environment
- getPath() — Get path to Application
- getRequest() — Get Request instance
- getResponse() — Get Response instance
- init() — Initialize system packages
- isDebug() — Return Debug flag
- process() — Process application
- render() — Render, is send Response
- run() — Run application
- useLayout() — Return/setup Layout Flag
Inherited from Bluz\Common\Helper
public
- __call() — Call magic helper
- addHelperPath() — Add helper path
Inherited from Bluz\Common\Singleton
public
- getInstance() — Get instance
- resetInstance() — Reset instance
History
-
2017-07-18T12:44:53+00:00 (commit #cc068ce)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Created tests for Controller Helpers Added method `Response::getType()` Renamed method `Response::switchType()` to `Response::setType()`
-
2017-07-06T15:08:00+00:00 (commit #8bfc97b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Controller refactoring
-
2017-06-30T08:36:40+00:00 (commit #2259ecf)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed comments style
-
2017-04-27T14:48:45+00:00 (commit #400a185)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Rename `Proxy\Request::getAccept()` to `Proxy\Request::checkAccept()`
-
2017-04-24T10:42:20+00:00 (commit #a614212)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small refactoring of `dirname()` usage
-
2017-04-21T13:24:35+00:00 (commit #3b25a3d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small update for codestyle
-
2017-04-13T14:30:00+00:00 (commit #1dd2879)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Moved error handling to skeleton
-
2017-04-11T08:21:54+00:00 (commit #f9900f1)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small refactoring for call `__DIR__`
-
2017-02-15T16:09:44+00:00 (commit #0fc0c8b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated coveralls config
-
2017-02-13T10:14:18+00:00 (commit #43dbf55)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Rollback to `getCount()` method
-
2017-01-30T13:15:49+00:00 (commit #fd5d943)
Author: Anton (AntonShevchuk@gmail.com) / Commiter: GitHub (AntonShevchuk@gmail.com)
Merge pull request #395 from AntonShevchuk/master Added `AttachmentResponse`
-
2017-01-30T12:38:53+00:00 (commit #0ab8691)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added `AttachmentResponse` Added `attachment($file)` helper for `Controller`