Skip to content

Commit

Permalink
Revert immutable updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tfirdaus committed Oct 10, 2024
1 parent fc9bf25 commit ff29daf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions app/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,11 @@ public function __construct(Extendable $ext)
$this->container = new Container($this->pimple);
}

public function withPluginFilePath(string $pluginFilePath): self
public function setPluginFilePath(string $pluginFilePath): self
{
$self = clone $this;

$this->pluginFilePath = $pluginFilePath;

return $self;
return $this;
}

/**
Expand All @@ -80,13 +78,11 @@ public function withPluginFilePath(string $pluginFilePath): self
* @param array<string> $services
* @phpstan-param array<class-string> $services
*/
public function withServices(array $services): self
public function addServices(array $services): self
{
$self = clone $this;

$this->services = $services;

return $self;
return $this;
}

public function boot(): void
Expand Down

0 comments on commit ff29daf

Please sign in to comment.