for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NerdsAndCompany\Schematic\Services;
use Craft;
use craft\base\VolumeInterface;
use craft\base\Model;
use craft\volumes\Local;
use NerdsAndCompany\Schematic\Schematic;
/**
* Schematic Asset Sources Service.
*
* Sync Craft Setups.
* @author Nerds & Company
* @copyright Copyright (c) 2015-2018, Nerds & Company
* @license MIT
* @see http://www.nerds.company
*/
class Volumes extends Base
{
* Get all volumes
* @return VolumeInterface[]
protected function getRecords()
return Craft::$app->volumes->getAllVolumes();
}
* {@inheritdoc}
protected function saveRecord(Model $record, array $definition)
return Craft::$app->volumes->saveVolume($record);
protected function deleteRecord(Model $record)
return Craft::$app->volumes->deleteVolume($record);