Grants review application.
More...
|
| __construct ( $deployDir, array $settings=[]) |
|
| run () |
| Main entry point for all requests.
|
|
|
static | redirect (Slim $slim, $name, $to, $routeName=null) |
| Add a redirect route to the app.
|
|
static | template (Slim $slim, $name, $routeName=null) |
| Add a static template route to the app.
|
|
Grants review application.
- Author
- Bryan Davis bd808.nosp@m.@wik.nosp@m.imedi.nosp@m.a.or.nosp@m.g
- Copyright
- © 2015 Bryan Davis, Wikimedia Foundation and contributors.
◆ __construct()
Wikimedia\Slimapp\AbstractApp::__construct |
( |
| $deployDir, |
|
|
array | $settings = [] ) |
- Parameters
-
string | $deployDir | Full path to code deployment |
array | $settings | Associative array of application settings |
◆ configureHeaderMiddleware()
Wikimedia\Slimapp\AbstractApp::configureHeaderMiddleware |
( |
| ) |
|
|
protected |
Configure the default HeaderMiddleware installed for all routes.
Default configuration adds these headers:
- "Vary: Cookie" to help upstream caches to the right thing
- "X-Frame-Options: DENY"
- A fairly strict 'self' only Content-Security-Policy to help protect against XSS attacks
- "Content-Type: text/html; charset=UTF-8"
- Returns
- array
◆ configureIoc()
Wikimedia\Slimapp\AbstractApp::configureIoc |
( |
Set | $container | ) |
|
|
abstractprotected |
Configure inversion of control/dependency injection container.
- Parameters
-
Set | $container | IOC container |
◆ configureRoutes()
Wikimedia\Slimapp\AbstractApp::configureRoutes |
( |
Slim | $slim | ) |
|
|
abstractprotected |
Configure routes to be handled by application.
- Parameters
-
◆ configureSlim()
Wikimedia\Slimapp\AbstractApp::configureSlim |
( |
Slim | $slim | ) |
|
|
abstractprotected |
Apply settings to the Slim application.
- Parameters
-
◆ configureView()
Wikimedia\Slimapp\AbstractApp::configureView |
( |
View | $view | ) |
|
|
abstractprotected |
Configure view behavior.
- Parameters
-
◆ redirect()
static Wikimedia\Slimapp\AbstractApp::redirect |
( |
Slim | $slim, |
|
|
| $name, |
|
|
| $to, |
|
|
| $routeName = null ) |
|
static |
Add a redirect route to the app.
- Parameters
-
Slim | $slim | App |
string | $name | Page name |
string | $to | Redirect target route name |
string | $routeName | Name for the route |
◆ template()
static Wikimedia\Slimapp\AbstractApp::template |
( |
Slim | $slim, |
|
|
| $name, |
|
|
| $routeName = null ) |
|
static |
Add a static template route to the app.
- Parameters
-
Slim | $slim | App |
string | $name | Page name |
string | $routeName | Name for the route |
The documentation for this class was generated from the following file: