Core Theme Components

CoreThemeKernel extends Kernel

Extends the Symfony Kernel for use with Wordpress and the Core Theme.

Table of Contents

build()  : void
create()  : self
Creates a new, booted CoreThemeKernel instance.
getBundlesPath()  : string
getCharset()  : string
Gets the charset of the application.
getConfigDir()  : string
getContainerBuilder()  : ContainerBuilder
getEventDispatcher()  : object
getLocale()  : string
getProjectDir()  : string
handle()  : Response
registerBundles()  : iteratable<string|int, mixed>
registerContainerConfiguration()  : void
Container configurations are set in src/Resources/config/services.php and loaded here.
__construct()  : mixed
Constructor is private. Use create() to build new kernel instances.
import()  : void

Methods

build()

public build(ContainerBuilder $containerBuilder) : void
Parameters
$containerBuilder : ContainerBuilder
Return values
void

create()

Creates a new, booted CoreThemeKernel instance.

public static create(string $environment, bool $debug) : self
Parameters
$environment : string
$debug : bool
Return values
self

getBundlesPath()

public getBundlesPath() : string
Return values
string

getCharset()

Gets the charset of the application.

public getCharset() : string
Return values
string

getConfigDir()

public getConfigDir() : string
Tags
throws
InvalidArgumentException
Return values
string

getContainerBuilder()

public getContainerBuilder() : ContainerBuilder
Return values
ContainerBuilder

getEventDispatcher()

public getEventDispatcher() : object
Return values
object

getProjectDir()

public getProjectDir() : string
Tags
throws
InvalidArgumentException
Return values
string

handle()

public handle(Request $request[, int $type = self::MAIN_REQUEST ][, bool $catch = true ]) : Response
Parameters
$request : Request
$type : int = self::MAIN_REQUEST
$catch : bool = true
Return values
Response

registerBundles()

public registerBundles() : iteratable<string|int, mixed>
Return values
iteratable<string|int, mixed>

registerContainerConfiguration()

Container configurations are set in src/Resources/config/services.php and loaded here.

public registerContainerConfiguration(LoaderInterface $loader) : void
Parameters
$loader : LoaderInterface
Return values
void

__construct()

Constructor is private. Use create() to build new kernel instances.

private __construct(string $environment, bool $debug) : mixed
Parameters
$environment : string
$debug : bool
Return values
mixed

import()

private import(string $type, array<string|int, mixed> $paths, ContainerBuilder $container) : void
Parameters
$type : string
$paths : array<string|int, mixed>
$container : ContainerBuilder
Return values
void

Search results