protected function configIsWritable() { $dir = $this->root . '/config'; if (!file_exists($dir)) { return $this->rootIsWritable(); } if (!is_writable($dir)) { return false; } $dir .= '/autoload'; return is_writable($dir); }