Skip to content

Commit

Permalink
fixed an issue with where same plugin could be added to the container…
Browse files Browse the repository at this point in the history
… multiple times
  • Loading branch information
oliwierptak committed Aug 1, 2023
1 parent 4646c7d commit d997b5e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Popo/Plugin/ExternalPluginContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,35 @@ class ExternalPluginContainer

public function addClassPluginClassName(string $classPluginClassName): self
{
static::$classPluginClassNames[] = $classPluginClassName;
static::$classPluginClassNames[$classPluginClassName] = $classPluginClassName;

return $this;
}

public function addMappingPolicyPluginClassName(string $mappingPolicyPluginClassName): self
{
static::$mappingPolicyPluginClassNames[] = $mappingPolicyPluginClassName;
static::$mappingPolicyPluginClassNames[$mappingPolicyPluginClassName] = $mappingPolicyPluginClassName;

return $this;
}

public function addNamespacePluginClassName(string $namespacePluginClassName): self
{
static::$namespacePluginClassNames[] = $namespacePluginClassName;
static::$namespacePluginClassNames[$namespacePluginClassName] = $namespacePluginClassName;

return $this;
}

public function addPhpFlePluginClassName(string $phpFilePluginClassName): self
{
static::$phpFilePluginClassNames[] = $phpFilePluginClassName;
static::$phpFilePluginClassNames[$phpFilePluginClassName] = $phpFilePluginClassName;

return $this;
}

public function addPropertyPluginClassName(string $propertyPluginClassName): self
{
static::$propertyPluginClassNames[] = $propertyPluginClassName;
static::$propertyPluginClassNames[$propertyPluginClassName] = $propertyPluginClassName;

return $this;
}
Expand Down

0 comments on commit d997b5e

Please sign in to comment.