Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / src / Drupal / Commands / pm / ThemeCommands.php
index b4e621850a979f56745627a4c3ea10584a35d082..8c3fa32dd20a307f39ca5d65a6fce50f6d36aa79 100644 (file)
@@ -4,6 +4,7 @@ namespace Drush\Drupal\Commands\pm;
 use Drupal\Core\Extension\ThemeInstallerInterface;
 use Drush\Commands\DrushCommands;
 use Drush\Drush;
+use Drush\Utils\StringUtils;
 
 class ThemeCommands extends DrushCommands
 {
@@ -33,7 +34,7 @@ class ThemeCommands extends DrushCommands
      */
     public function enable($themes)
     {
-        $themes = _convert_csv_to_array($themes);
+        $themes = StringUtils::csvToArray($themes);
         if (!$this->getThemeInstaller()->install($themes, true)) {
             throw new \Exception('Unable to install themes.');
         }
@@ -49,7 +50,7 @@ class ThemeCommands extends DrushCommands
      */
     public function uninstall($themes)
     {
-        $themes = _convert_csv_to_array($themes);
+        $themes = StringUtils::csvToArray($themes);
         if (!$this->getThemeInstaller()->uninstall($themes, true)) {
             throw new \Exception('Unable to uninstall themes.');
         }