Beta version

class DevKernel extends Kernel

DevKernel is meant for Vagrant and Docker development env where using file sharing on Roadiz folder.

Constants

CMS_VERSION

SECURITY_DOMAIN

INSTALL_CLASSNAME

Properties

static $cmsBuild from Kernel
static $cmsVersion from Kernel
Container|null $container from Kernel

Methods

__construct(string $environment, boolean $debug, bool $preview = false, string $appName = 'roadiz_dev')

No description

boot()

Boots the current kernel.

from Kernel
register(Container $container)

Register every services needed by Roadiz CMS.

from Kernel
Response
handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)

Handles a Roadiz master Request and transforms it into a Response.

from Kernel
initEvents()

Register KernelEvents subscribers.

from Kernel
static mixed
getService(string $key)

Get Pimple dependency injection service container.

from Kernel
getEnvironment()

[email protected]}

from Kernel
isDebug()

[email protected]}

from Kernel
boolean
isInstallMode()

No description

from Kernel
boolean
isPreview()

No description

from Kernel
boolean
isDevMode()

No description

from Kernel
boolean
isProdMode()

No description

from Kernel
static DevKernel
getInstance(string $environment = 'dev', bool $debug = true, bool $preview = false, string $appName = 'roadiz_dev')

No description

Container
getContainer()

No description

from Kernel
setContainer(Container $container)

No description

from Kernel
mixed
get(string $serviceName)

Return a service from container.

from Kernel
bool
has(string $serviceName)

Returns true if the service is defined.

from Kernel
terminate(Request $request, Response $response)

[email protected]}

from Kernel
shutdown()

[email protected]}

from Kernel
getBundles()

[email protected]}

from Kernel
getBundle($name, $first = true)

[email protected]}

from Kernel
locateResource($name, $dir = null, $first = true)

[email protected]}

from Kernel
getName()

[email protected]}

from Kernel
getRootDir()

[email protected]}

from Kernel
string
getPublicDir()

No description

from Kernel
string
getVendorDir()

No description

from Kernel
getStartTime()

[email protected]}

from Kernel
string
getCacheDir()

It’s important to set cache dir outside of any shared folder. RAM disk is a good idea.

string
getLogDir()

It’s important to set logs dir outside of any shared folder. RAM disk is a good idea.

getCharset()

[email protected]}

from Kernel
BundleInterface[]
registerBundles()

Returns an array of bundles to register.

from Kernel
bool
registerContainerConfiguration(LoaderInterface $loader)

Loads the container configuration.

from Kernel
bool
isClassInActiveBundle(string $class)

No description

from Kernel
string
serialize()

No description

from Kernel
unserialize(string $data)

No description

from Kernel
string
getPublicFilesPath()

No description

from Kernel
string
getPublicFilesBasePath()

No description

from Kernel
string
getPrivateFilesPath()

No description

from Kernel
string
getPrivateFilesBasePath()

No description

from Kernel
string
getFontsFilesPath()

No description

from Kernel
string
getFontsFilesBasePath()

No description

from Kernel

Details

at line 52
__construct(string $environment, boolean $debug, bool $preview = false, string $appName = 'roadiz_dev')

Parameters

string $environment
boolean $debug
bool $preview
string $appName

in Kernel at line 120
boot()

Boots the current kernel.

in Kernel at line 145
register(Container $container)

Register every services needed by Roadiz CMS.

Parameters

Container $container

in Kernel at line 205
Response handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)

Handles a Roadiz master Request and transforms it into a Response.

Roadiz default handling is by-passed for assets serving.

Parameters

Request $request
int $type
bool $catch

Return Value

Response

in Kernel at line 247
initEvents()

Register KernelEvents subscribers.

in Kernel at line 286
static mixed getService(string $key)

Get Pimple dependency injection service container.

Parameters

string $key Service name

Return Value

mixed

in Kernel at line 294
getEnvironment()

[email protected]}

in Kernel at line 301
isDebug()

[email protected]}

in Kernel at line 309
boolean isInstallMode()

Return Value

boolean

in Kernel at line 317
boolean isPreview()

Return Value

boolean

in Kernel at line 325
boolean isDevMode()

Return Value

boolean

in Kernel at line 333
boolean isProdMode()

Return Value

boolean

at line 66
static DevKernel getInstance(string $environment = 'dev', bool $debug = true, bool $preview = false, string $appName = 'roadiz_dev')

Parameters

string $environment
bool $debug
bool $preview
string $appName

Return Value

DevKernel

in Kernel at line 359
Container getContainer()

Return Value

Container

in Kernel at line 367
ContainerAwareInterface setContainer(Container $container)

Parameters

Container $container

Return Value

ContainerAwareInterface

in Kernel at line 376
mixed get(string $serviceName)

Return a service from container.

Parameters

string $serviceName

Return Value

mixed

in Kernel at line 384
bool has(string $serviceName)

Returns true if the service is defined.

Parameters

string $serviceName

Return Value

bool true if the service is defined, false otherwise

in Kernel at line 392
terminate(Request $request, Response $response)

[email protected]}

Parameters

Request $request
Response $response

in Kernel at line 405
shutdown()

[email protected]}

in Kernel at line 428
getBundles()

[email protected]}

in Kernel at line 436
getBundle($name, $first = true)

[email protected]}

Parameters

$name
$first

in Kernel at line 443
locateResource($name, $dir = null, $first = true)

[email protected]}

Parameters

$name
$dir
$first

in Kernel at line 450
getName()

[email protected]}

in Kernel at line 458
getRootDir()

[email protected]}

in Kernel at line 466
string getPublicDir()

Return Value

string Return web public root.

in Kernel at line 474
string getVendorDir()

Return Value

string Return Composer vendor root folder.

in Kernel at line 482
getStartTime()

[email protected]}

at line 79
string getCacheDir()

It’s important to set cache dir outside of any shared folder. RAM disk is a good idea.

Return Value

string

at line 89
string getLogDir()

It’s important to set logs dir outside of any shared folder. RAM disk is a good idea.

Return Value

string

in Kernel at line 509
getCharset()

[email protected]}

in Kernel at line 519
BundleInterface[] registerBundles()

Returns an array of bundles to register.

Return Value

BundleInterface[] An array of bundle instances.

in Kernel at line 530
bool registerContainerConfiguration(LoaderInterface $loader)

Loads the container configuration.

Parameters

LoaderInterface $loader A LoaderInterface instance

Return Value

bool

in Kernel at line 540
bool isClassInActiveBundle(string $class)

Parameters

string $class

Return Value

bool

in Kernel at line 548
string serialize()

Return Value

string

in Kernel at line 556
unserialize(string $data)

Parameters

string $data

in Kernel at line 565
string getPublicFilesPath()

Return Value

string Return absolute path to public files folder.

in Kernel at line 573
string getPublicFilesBasePath()

Return Value

string Return relative path to public files folder.

in Kernel at line 581
string getPrivateFilesPath()

Return Value

string Return absolute path to private files folder. Path must be protected.

in Kernel at line 589
string getPrivateFilesBasePath()

Return Value

string Return relative path to private files folder.

in Kernel at line 597
string getFontsFilesPath()

Return Value

string Return absolute path to private font files folder. Path must be protected.

in Kernel at line 605
string getFontsFilesBasePath()

Return Value

string Return relative path to private font files folder.