mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-09 23:08:56 +02:00
[Nostromo] Revert RuntimeInterface
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
namespace Mage\Task;
|
||||
|
||||
use Mage\Runtime\RuntimeInterface;
|
||||
use Mage\Runtime\Runtime;
|
||||
|
||||
/**
|
||||
* Abstract base class for Magallanes Tasks
|
||||
@@ -25,7 +25,7 @@ abstract class AbstractTask
|
||||
protected $options = [];
|
||||
|
||||
/**
|
||||
* @var RuntimeInterface
|
||||
* @var Runtime
|
||||
*/
|
||||
protected $runtime;
|
||||
|
||||
@@ -68,10 +68,10 @@ abstract class AbstractTask
|
||||
/**
|
||||
* Set the Runtime instance
|
||||
*
|
||||
* @param RuntimeInterface $runtime
|
||||
* @param Runtime $runtime
|
||||
* @return AbstractTask
|
||||
*/
|
||||
public function setRuntime(RuntimeInterface $runtime)
|
||||
public function setRuntime(Runtime $runtime)
|
||||
{
|
||||
$this->runtime = $runtime;
|
||||
return $this;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
namespace Mage\Task;
|
||||
|
||||
use Mage\Runtime\RuntimeInterface;
|
||||
use Mage\Runtime\Runtime;
|
||||
use Mage\Runtime\Exception\RuntimeException;
|
||||
use Symfony\Component\Finder\Finder;
|
||||
use Symfony\Component\Finder\SplFileInfo;
|
||||
@@ -23,7 +23,7 @@ use Symfony\Component\Finder\SplFileInfo;
|
||||
class TaskFactory
|
||||
{
|
||||
/**
|
||||
* @var RuntimeInterface
|
||||
* @var Runtime
|
||||
*/
|
||||
protected $runtime;
|
||||
|
||||
@@ -35,9 +35,9 @@ class TaskFactory
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param RuntimeInterface $runtime
|
||||
* @param Runtime $runtime
|
||||
*/
|
||||
public function __construct(RuntimeInterface $runtime)
|
||||
public function __construct(Runtime $runtime)
|
||||
{
|
||||
$this->runtime = $runtime;
|
||||
$this->loadBuiltInTasks();
|
||||
|
||||
Reference in New Issue
Block a user