Skip to content

Commit

Permalink
Register non-config service names
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsafley committed Jun 12, 2024
1 parent 06edce7 commit 9f15924
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions application/src/ServiceManager/AbstractPluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,24 @@ public function __construct($configOrContainerInterface = null, array $v3config
}
}

/**
* Register service names that were set via setFactory().
*/
public function setFactory($name, $factory)
{
parent::setFactory($name, $factory);
$this->registeredNames[$name] = $name;
}

/**
* Register service names that were set via setInvokableClass().
*/
public function setInvokableClass($name, $class = null)
{
parent::setInvokableClass($name, $factory);
$this->registeredNames[$name] = $name;
}

/**
* Set the registered names.
*
Expand Down

0 comments on commit 9f15924

Please sign in to comment.