Initial Commit

This commit is contained in:
Mark Gregory
2026-04-21 09:12:51 +01:00
commit 6bc3c69c3e
151 changed files with 11917 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
<?php
namespace mpba\Modules\Publishing;
use mpba\Modules\Migrations\Migrator;
class MigrationPublisher extends AssetPublisher
{
/**
* @var Migrator
*/
private $migrator;
/**
* MigrationPublisher constructor.
*/
public function __construct(Migrator $migrator)
{
$this->migrator = $migrator;
parent::__construct($migrator->getModule());
}
/**
* Get destination path.
*
* @return string
*/
public function getDestinationPath()
{
return $this->repository->config('paths.migration');
}
/**
* Get source path.
*
* @return string
*/
public function getSourcePath()
{
return $this->migrator->getPath();
}
}