DefaultRunner
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
Begin the runtime.
Define the base url if not defined
This will define BASE_URL
to whatever is resolved from the resolver.
No description
No description
Set legacy config values
This sets concrete.site
to the current site's sitename.
Register routes that power legacy functionality
This includes /tools/tool_handle
and /tools/blocks/block_handle/tool_handle
.
Create the request object to use.
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.
Try a list of steps. If a response is returned, halt progression and return the response;.
Get the default config repository to use.
Get the default router to use.
Get the default site service to use.
Details
setApplication(Application $app)
Setter method for the application
__construct(ServerInterface $server)
DefaultRunner constructor.
mixed
run()
Begin the runtime.
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.
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.
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
.
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.
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.
protected Response|void
handleUpdates()
deprecated
deprecated In a future major version this will be part of HTTP middleware
Update automatically.
protected Response|void
handleEventing()
deprecated
deprecated In a future major version this will be part of HTTP middleware
Fire HTTP events.
protected Response|void
handlePermissionKeys()
deprecated
deprecated In a future major version this will be part of HTTP middleware
Load all permission keys.
protected Response|null
trySteps(array $steps)
Try a list of steps. If a response is returned, halt progression and return the response;.
protected Repository
getConfig()
deprecated
deprecated In a future major version this will be part of HTTP middleware
Get the config repository to use.
private Repository
getDefaultConfig()
Get the default config repository to use.
$this
setConfig(Repository $repository)
deprecated
deprecated In a future major version this will be part of HTTP middleware
Set the config repository.
protected RouterInterface
getRouter()
deprecated
deprecated In a future major version this will be part of HTTP middleware
Get the router to use.
private RouterInterface
getDefaultRouter()
Get the default router to use.
$this
setRouter(RouterInterface $router)
deprecated
deprecated In a future major version this will be part of HTTP middleware
Set the router.
protected Service
getSiteService()
deprecated
deprecated In a future major version this will be part of HTTP middleware
Get the site service to use.
private Service
getDefaultSiteService()
Get the default site service to use.
$this
setSiteService(Service $site)
deprecated
deprecated In a future major version this will be part of HTTP middleware
Set the site service.
protected UrlResolverInterface
getUrlResolver()
deprecated
deprecated In a future major version this will be part of HTTP middleware
Get the url resolver to use.
private UrlResolverInterface
getDefaultUrlResolver()
deprecated
deprecated In a future major version this will be part of HTTP middleware
Get the default url resolver to use.
$this
setUrlResolver(UrlResolverInterface $urlResolver)
deprecated
deprecated In a future major version this will be part of HTTP middleware
Set the url resolver.
protected EventDispatcherInterface
getEventDispatcher()
deprecated
deprecated In a future major version this will be part of HTTP middleware
Get the url resolver to use.
private EventDispatcherInterface
getDefaultEventDispatcher()
deprecated
deprecated In a future major version this will be part of HTTP middleware
Get the default url resolver to use.
$this
setEventDispatcher(EventDispatcherInterface $urlResolver)
deprecated
deprecated In a future major version this will be part of HTTP middleware
Set the url resolver.