public function saveContents($contents)
    {

        $path = pathinfo($this->configFileLocation);

        //BACKUP CURRENT config.php
        $backup = $this->backupPath.'/pluginconfig.'.date('Y_m_d_His').'.php';
        FileSystemUtils::safeCopy($this->configFileLocation, $backup);

        //OVERWRITE config.php WITH POSTED CONTENTS
        FileSystemUtils::safeFilePutContents($this->configFileLocation, $contents);

        $this->VersionService->incrementDeploymentRevision('Saved config.php');

    }