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 Router $router
protected Service $siteService
protected EventDispatcher $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.

createRequest()

Create the request object to use.

Response|void
setupPackages() deprecated

Setup concrete5 packages.

preloadClassAliases() deprecated

Pre-load class aliases This is needed to avoid the problem of calling functions that accept a class alias as a parameter, but that alias isn't still auto-loaded. For example, that would result in the following error: Argument 1 passed to functionName() must be an instance of Area, instance of Concrete\Core\Area\Area given.

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(Router $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.

getEventDispatcher() deprecated

Get the url resolver to use.

getDefaultEventDispatcher() deprecated

Get the default url resolver to use.

$this
setEventDispatcher(EventDispatcher $urlResolver) deprecated

Set the url resolver.

bool
shouldProcessRequest(Request $request)

No description

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 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 preloadClassAliases() deprecated

deprecated Don't use this method: it will be removed in future concrete5 versions

Pre-load class aliases This is needed to avoid the problem of calling functions that accept a class alias as a parameter, but that alias isn't still auto-loaded. For example, that would result in the following error: Argument 1 passed to functionName() must be an instance of Area, instance of Concrete\Core\Area\Area given.

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 Router getRouter() deprecated

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

Get the router to use.

Return Value

Router

private Router getDefaultRouter()

Get the default router to use.

Return Value

Router

$this setRouter(Router $router) deprecated

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

Set the router.

Parameters

Router $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 EventDispatcher getEventDispatcher() deprecated

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

Get the url resolver to use.

Return Value

EventDispatcher

private EventDispatcher getDefaultEventDispatcher() deprecated

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

Get the default url resolver to use.

Return Value

EventDispatcher

$this setEventDispatcher(EventDispatcher $urlResolver) deprecated

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

Set the url resolver.

Parameters

EventDispatcher $urlResolver

Return Value

$this

protected bool shouldProcessRequest(Request $request)

No description

Parameters

Request $request

Return Value

bool