Automattic\WooCommerce\Vendor\League\Container

ReflectionContainer::cacheResolutions()publicWC 1.0

Whether the container should default to caching resolutions and returning the cache on following calls.

Метод класса: ReflectionContainer{}

Хуков нет.

Возвращает

self.

Использование

$ReflectionContainer = new ReflectionContainer();
$ReflectionContainer->cacheResolutions( $option ) : ContainerInterface;
$option(true|false)
-
По умолчанию: true

Код ReflectionContainer::cacheResolutions() WC 8.7.0

public function cacheResolutions(bool $option = true) : ContainerInterface
{
    $this->cacheResolutions = $option;

    return $this;
}