Source of file UpdataModuleType.php
Size: 0,788 Bytes - Last Modified: 2021-12-23T10:42:13+00:00
/var/www/docs.ssmods.com/process/src/src/Commands/UpdateComposer/UpdataModuleType.php
12345678910111213141516171819202122232425262728293031323334353637 | <?php namespace Sunnysideup\ModuleChecks\Commands\UpdateComposer; use Sunnysideup\ModuleChecks\Commands\UpdateComposerAbstract; /** * sets the default installation folder */ class UpdataModuleType extends UpdateComposerAbstract { /** * should it be included by default? * @var bool */ private static $enabled = false; public function run(): bool { $json = $this->getJsonData(); if($json['type'] === 'silverstripe-module') { $json['type'] = 'silverstripe-vendormodule'; } $this->setJsonData($json); } /** * what does it do? * @return string */ public function getDescription(): string { return 'Change from silverstripe-module to silverstripe-vendormodule.'; } } |