class DefaultRunner implements RunInterface, ApplicationAwareInterface (View source)

Default HTTP Runner.

Replace pipeline style functionality with middleware

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Properties

protected Application $app from  ApplicationAwareTrait
protected Repository $config
protected UrlResolverInterface $urlResolver
protected RouterInterface $router
protected Service $siteService
protected EventDispatcherInterface $eventDispatcher
private ServerInterface $server

Methods

setApplication(Application $app)

Setter method for the application

__construct(ServerInterface $server)

DefaultRunner constructor.

mixed
run()

Begin the runtime.

Response|void
initializeLegacyURLDefinitions() deprecated

Define the base url if not defined This will define BASE_URL to whatever is resolved from the resolver.

initializeSystemTimezone()

No description

initializeSiteTimezone()

No description

initializeTimezone() deprecated

No description

setSystemLocale() deprecated

Initialize localization.

Response|void
registerLegacyConfigValues() deprecated

Set legacy config values This sets concrete.site to the current site's sitename.

Response|void
registerLegacyRoutes() deprecated

Register routes that power legacy functionality This includes /tools/tool_handle and /tools/blocks/block_handle/tool_handle.

createRequest()

Create the request object to use.

Response|void
setupPackages() deprecated

Setup concrete5 packages.

Response|void
loadBootstrap() deprecated

Load in the /application/bootstrap/app.php file.

Response|void
handleUpdates() deprecated

Update automatically.

Response|void
handleEventing() deprecated

Fire HTTP events.

Response|void
handlePermissionKeys() deprecated

Load all permission keys.

Response|null
trySteps(array $steps)

Try a list of steps. If a response is returned, halt progression and return the response;.

getConfig() deprecated

Get the config repository to use.

getDefaultConfig()

Get the default config repository to use.

$this
setConfig(Repository $repository) deprecated

Set the config repository.

getRouter() deprecated

Get the router to use.

getDefaultRouter()

Get the default router to use.

$this
setRouter(RouterInterface $router) deprecated

Set the router.

getSiteService() deprecated

Get the site service to use.

getDefaultSiteService()

Get the default site service to use.

$this
setSiteService(Service $site) deprecated

Set the site service.

getUrlResolver() deprecated

Get the url resolver to use.

getDefaultUrlResolver() deprecated

Get the default url resolver to use.

$this
setUrlResolver(UrlResolverInterface $urlResolver) deprecated

Set the url resolver.

EventDispatcherInterface
getEventDispatcher() deprecated

Get the url resolver to use.

EventDispatcherInterface
getDefaultEventDispatcher() deprecated

Get the default url resolver to use.

$this
setEventDispatcher(EventDispatcherInterface $urlResolver) deprecated

Set the url resolver.

Details

setApplication(Application $app)

Setter method for the application

Parameters

Application $app

__construct(ServerInterface $server)

DefaultRunner constructor.

Parameters

ServerInterface $server

mixed run()

Begin the runtime.

Return Value

mixed

protected Response|void initializeLegacyURLDefinitions() deprecated

deprecated In a future major version this will be part of HTTP middleware

Define the base url if not defined This will define BASE_URL to whatever is resolved from the resolver.

Return Value

Response|void

Returns a response if an error occurs

protected initializeSystemTimezone()

No description

protected initializeSiteTimezone()

No description

protected initializeTimezone() deprecated

deprecated Splitted into initializeSystemTimezone and initializeSiteTimezone

No description

protected setSystemLocale() deprecated

deprecated In a future major version this will be part of HTTP middleware

Initialize localization.

protected Response|void registerLegacyConfigValues() deprecated

deprecated In a future major version this will be part of HTTP middleware

Set legacy config values This sets concrete.site to the current site's sitename.

Return Value

Response|void

Returns a response if an error occurs

protected Response|void registerLegacyRoutes() deprecated

deprecated In a future major version this will be part of HTTP middleware

Register routes that power legacy functionality This includes /tools/tool_handle and /tools/blocks/block_handle/tool_handle.

Return Value

Response|void

Returns a response if an error occurs

protected createRequest()

Create the request object to use.

protected Response|void setupPackages() deprecated

deprecated In a future major version this will be part of HTTP middleware

Setup concrete5 packages.

Return Value

Response|void

Returns a response if an error occurs

protected Response|void loadBootstrap() deprecated

deprecated In a future major version this will be part of HTTP middleware

Load in the /application/bootstrap/app.php file.

Return Value

Response|void

Returns a response if an error occurs

protected Response|void handleUpdates() deprecated

deprecated In a future major version this will be part of HTTP middleware

Update automatically.

Return Value

Response|void

Returns a response if an error occurs

protected Response|void handleEventing() deprecated

deprecated In a future major version this will be part of HTTP middleware

Fire HTTP events.

Return Value

Response|void

Returns a response if an error occurs

protected Response|void handlePermissionKeys() deprecated

deprecated In a future major version this will be part of HTTP middleware

Load all permission keys.

Return Value

Response|void

Returns a response if an error occurs

protected Response|null trySteps(array $steps)

Try a list of steps. If a response is returned, halt progression and return the response;.

Parameters

array $steps

Return Value

Response|null

protected Repository getConfig() deprecated

deprecated In a future major version this will be part of HTTP middleware

Get the config repository to use.

Return Value

Repository

private Repository getDefaultConfig()

Get the default config repository to use.

Return Value

Repository

$this setConfig(Repository $repository) deprecated

deprecated In a future major version this will be part of HTTP middleware

Set the config repository.

Parameters

Repository $repository

Return Value

$this

protected RouterInterface getRouter() deprecated

deprecated In a future major version this will be part of HTTP middleware

Get the router to use.

Return Value

RouterInterface

private RouterInterface getDefaultRouter()

Get the default router to use.

Return Value

RouterInterface

$this setRouter(RouterInterface $router) deprecated

deprecated In a future major version this will be part of HTTP middleware

Set the router.

Parameters

RouterInterface $router

Return Value

$this

protected Service getSiteService() deprecated

deprecated In a future major version this will be part of HTTP middleware

Get the site service to use.

Return Value

Service

private Service getDefaultSiteService()

Get the default site service to use.

Return Value

Service

$this setSiteService(Service $site) deprecated

deprecated In a future major version this will be part of HTTP middleware

Set the site service.

Parameters

Service $site

Return Value

$this

protected UrlResolverInterface getUrlResolver() deprecated

deprecated In a future major version this will be part of HTTP middleware

Get the url resolver to use.

Return Value

UrlResolverInterface

private UrlResolverInterface getDefaultUrlResolver() deprecated

deprecated In a future major version this will be part of HTTP middleware

Get the default url resolver to use.

Return Value

UrlResolverInterface

$this setUrlResolver(UrlResolverInterface $urlResolver) deprecated

deprecated In a future major version this will be part of HTTP middleware

Set the url resolver.

Parameters

UrlResolverInterface $urlResolver

Return Value

$this

protected EventDispatcherInterface getEventDispatcher() deprecated

deprecated In a future major version this will be part of HTTP middleware

Get the url resolver to use.

Return Value

EventDispatcherInterface

private EventDispatcherInterface getDefaultEventDispatcher() deprecated

deprecated In a future major version this will be part of HTTP middleware

Get the default url resolver to use.

Return Value

EventDispatcherInterface

$this setEventDispatcher(EventDispatcherInterface $urlResolver) deprecated

deprecated In a future major version this will be part of HTTP middleware

Set the url resolver.

Parameters

EventDispatcherInterface $urlResolver

Return Value

$this