private function __construct() { $this->CAHCE = new SimpleDataCache(); $this->enabled = PsDefines::isProfilingEnabled(); $this->dirManager = DirManager::autogen('profilers'); if ($this->enabled) { PsShotdownSdk::registerDestructable($this, PsShotdownSdk::PsProfiler); } }
private function __construct() { $this->CACHE = new SimpleDataCache(); $this->emptyLogger = new PsLoggerEmpty(); /* * Вычислим признак включённости логирования. */ $this->enabled = PsDefines::isLoggingEnabled(); if ($this->enabled) { $this->writer = AbstractLogWriter::inst(PsDefines::getLoggingStream()); $this->writer->initAndWriteFirstLog(); PsShotdownSdk::registerDestructable($this, PsShotdownSdk::PsLogger); } }
protected function __construct() { $this->CACHE = new SimpleDataCache(); $this->LOGGER = PsLogger::inst(__CLASS__); if ($this->LOGGER->isEnabled()) { PsShotdownSdk::registerDestructable($this, PsShotdownSdk::FoldedResourcesManager); } }
protected function __construct() { $this->LOGGER = PsLogger::inst(__CLASS__); PsShotdownSdk::registerDestructable($this, PsShotdownSdk::PsLock); }