Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
removed reset from Automatic
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbannert committed Sep 3, 2018
1 parent e97659a commit bb48475
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Automatic/Automatic.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
use Narrowspark\Automatic\Common\Contract\Configurator as ConfiguratorContract;
use Narrowspark\Automatic\Common\Contract\Exception\RuntimeException;
use Narrowspark\Automatic\Common\Contract\Package as PackageContract;
use Narrowspark\Automatic\Common\Contract\Resettable as ResettableContract;
use Narrowspark\Automatic\Common\Traits\ExpandTargetDirTrait;
use Narrowspark\Automatic\Common\Traits\GetGenericPropertyReaderTrait;
use Narrowspark\Automatic\Common\Util;
Expand All @@ -53,7 +52,7 @@
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Input\InputInterface;

class Automatic implements PluginInterface, EventSubscriberInterface, ResettableContract
class Automatic implements PluginInterface, EventSubscriberInterface
{
use ExpandTargetDirTrait;
use GetGenericPropertyReaderTrait;
Expand Down Expand Up @@ -289,7 +288,7 @@ public function runSkeletonGenerator(Event $event): void
$lock->read();

if ($lock->has(SkeletonInstaller::LOCK_KEY)) {
$this->reset();
$this->operations = [];

$skeletonGenerator = new SkeletonGenerator(
$this->container->get(IOInterface::class),
Expand Down Expand Up @@ -570,14 +569,6 @@ public function onFileDownload(PreFileDownloadEvent $event): void
}
}

/**
* {@inheritdoc}
*/
public function reset(): void
{
$this->operations = [];
}

/**
* Add found legacy tags to the tags manager.
*
Expand Down

0 comments on commit bb48475

Please sign in to comment.