private function __construct() { $this->CLASS = get_called_class(); $this->CACHE = new SimpleDataCache(); $this->DBTYPE = $this->isStoreToDb() ? $this->CLASS : null; $this->DIR_MANAGER = DirManager::inst(array(ConfigIni::uploadsDirRel(), $this->CLASS)); $this->LOGGER = PsLogger::inst($this->CLASS); $this->LOGGER->info('Instance created. Work with db ? {}. Is autonomous ? {}.', var_export($this->isStoreToDb(), true), var_export($this->isAutonomous(), true)); $this->LOGGER->info('Upload dir: [{}].', $this->DIR_MANAGER->relDirPath()); $this->LOGGER->info(); }
public function __construct(DirManager $dir) { $this->LOGGER = Autoload::getLogger(); $this->classesDir = $dir; $this->classPathFile = DirManager::autogen('classpath')->getDirItem(null, unique_from_path($dir->relDirPath())); }