diff --git a/app/Plugin.php b/app/Plugin.php index 60a590f..97766f1 100644 --- a/app/Plugin.php +++ b/app/Plugin.php @@ -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; } /** @@ -80,13 +78,11 @@ public function withPluginFilePath(string $pluginFilePath): self * @param array $services * @phpstan-param array $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