Skip to content

Commit

Permalink
Merge pull request #2203 from omeka/register-non-config-service-names
Browse files Browse the repository at this point in the history
Register non-config service names
  • Loading branch information
zerocrates authored Jul 2, 2024
2 parents d99a1d7 + 9f15924 commit 8a920c8
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 8a920c8

Please sign in to comment.