class Pimcore (View source)

Properties

static bool $adminMode

Methods

static Config|null
initConfiguration()

No description

static 
setFeatureManager(FeatureManagerInterface $featureManager)

No description

static 
getFeatureManager()

No description

static 
isFeatureEnabled(Feature $feature)

No description

static bool
inDebugMode(DebugMode|int|null $flag = null)

No description

static bool
inDevMode(DevMode|int|null $flag = null)

No description

static 
setDebugMode(bool $debugMode = true)

Sets debug mode (overrides the PIMCORE_DEBUG constant and the debug mode from config)

static 
setAdminMode()

switches pimcore into the admin mode - there you can access also unpublished elements, .

static 
unsetAdminMode()

switches back to the non admin mode, where unpublished elements are invisible

static bool
inAdmin()

check if the process is currently in admin mode or not

static object|ContainerAwareEventDispatcher
getEventDispatcher()

No description

static KernelInterface
getKernel()

No description

static bool
hasKernel()

No description

static 
setKernel(KernelInterface $kernel)

No description

static ContainerInterface
getContainer()

Accessing the container this way is discouraged as dependencies should be wired through the container instead of needing to access the container directly. This exists mainly for compatibility with legacy code.

static bool
hasContainer()

No description

static ClassLoader
getAutoloader()

No description

static 
setAutoloader(ClassLoader $autoloader)

No description

static 
addToGloballyProtectedItems($keepItems)

Add $keepItems to the list of items which are protected from garbage collection.

static 
removeFromGloballyProtectedItems($deleteItems)

Items to be deleted.

static 
collectGarbage(array $keepItems = [])

Forces a garbage collection.

static 
shutdown()

this method is called with register_shutdown_function() and writes all data queued into the cache

static 
disableMinifyJs()

No description

static 
initLogger()

No description

static bool
isLegacyModeAvailable()

No description

static mixed
__callStatic($name, $arguments)

No description

Details

static Config|null initConfiguration()

Return Value

Config|null

static setFeatureManager(FeatureManagerInterface $featureManager)

Parameters

FeatureManagerInterface $featureManager

static getFeatureManager()

static isFeatureEnabled(Feature $feature)

Parameters

Feature $feature

static bool inDebugMode(DebugMode|int|null $flag = null)

Parameters

DebugMode|int|null $flag

Return Value

bool

static bool inDevMode(DevMode|int|null $flag = null)

Parameters

DevMode|int|null $flag

Return Value

bool

static setDebugMode(bool $debugMode = true)

Sets debug mode (overrides the PIMCORE_DEBUG constant and the debug mode from config)

Parameters

bool $debugMode

static setAdminMode()

switches pimcore into the admin mode - there you can access also unpublished elements, .

...

static unsetAdminMode()

switches back to the non admin mode, where unpublished elements are invisible

static bool inAdmin()

check if the process is currently in admin mode or not

Return Value

bool

static object|ContainerAwareEventDispatcher getEventDispatcher()

Return Value

object|ContainerAwareEventDispatcher

static KernelInterface getKernel()

Return Value

KernelInterface

static bool hasKernel()

Return Value

bool

static setKernel(KernelInterface $kernel)

Parameters

KernelInterface $kernel

static ContainerInterface getContainer()

Accessing the container this way is discouraged as dependencies should be wired through the container instead of needing to access the container directly. This exists mainly for compatibility with legacy code.

Return Value

ContainerInterface

static bool hasContainer()

Return Value

bool

static ClassLoader getAutoloader()

Return Value

ClassLoader

static setAutoloader(ClassLoader $autoloader)

Parameters

ClassLoader $autoloader

static addToGloballyProtectedItems($keepItems)

Add $keepItems to the list of items which are protected from garbage collection.

Parameters

$keepItems

static removeFromGloballyProtectedItems($deleteItems)

Items to be deleted.

Parameters

$deleteItems

static collectGarbage(array $keepItems = [])

Forces a garbage collection.

Parameters

array $keepItems

static shutdown()

this method is called with register_shutdown_function() and writes all data queued into the cache

static disableMinifyJs()

static initLogger()

static bool isLegacyModeAvailable()

Return Value

bool

static mixed __callStatic($name, $arguments)

Parameters

$name
$arguments

Return Value

mixed

Exceptions

Exception