Documentation

getInstance

\Bitrix\Main\Application public static
\Bitrix\Main\Application::getInstance(
);

Static method returns the current app instance.

No parameters

Exceptions

Examples

App object can be retrieved as follows:

$application = Application::getInstance();

$cache = \Bitrix\Main\Application::getInstance()->getManagedCache();
$cache->clean("b_module_to_module"); 


© «Bitrix24», 2001-2022
Up