private static function install($library, $libBaseDir)
 {
     $file = "CIX_" . $library . '.php';
     $libDest = $libBaseDir . $file;
     if (!file_exists($libDest)) {
         $source = Manager::getResourcePath($file, '/core');
         copy($source, $libDest);
     }
 }
 public static function write(Event $event, $appDirectory)
 {
     self::checkDatabaseConfigurationFiles($appDirectory);
     $dist_config = self::getDatabaseConfigurationData($appDirectory . '/config/database.php.dist');
     $current_config = self::getDatabaseConfigurationData($appDirectory . '/config/database.php');
     $changed_config = self::getWritableDatabaseConfigurationValues($event, $dist_config, $current_config);
     if (empty($changed_config)) {
         //Nothing change
         return FALSE;
     }
     $configData = file_get_contents(Manager::getResourcePath('database.php', '/config'));
     $buildDatabaseConfigurationString = self::buildDatabaseConfigurationString($changed_config);
     $configData = str_replace('{DB_CONFIG_DATA}', $buildDatabaseConfigurationString, $configData);
     file_put_contents($appDirectory . '/config/database.php', $configData);
 }