Skip to content

Commit

Permalink
Merge pull request #397 from doctrine/drop-obsolete-method
Browse files Browse the repository at this point in the history
drop obsolete namespace alias method
  • Loading branch information
dbu authored Apr 3, 2024
2 parents 315d435 + 01fe5eb commit 3c542dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ Changelog
3.0.0 (unreleased)
------------------

* Upgrade to phpcr-odm 2.0
* Support jackalope 2.0
* Upgrade to PHPCR-ODM 2.0
* Support Jackalope 2.0
* Drop support for PHP 7
* Replace doctrine cache with PSR-6 cache with the symfony/cache implementation.
* Replace doctrine cache with PSR-6 cache with the `symfony/cache` implementation.
The configuration of metadata_cache_driver changed. By default, it creates an `array` cache.
To configure a service, specify `type: service` and specify your service in the `id` property.
To use a cache pool, specify the service id of that pool.
* Removed support for namespace alias, use the FQN names.
* Removed support for namespace alias, use the FQN names. The method `ManagerRegistry::getAliasNamespace` has been deleted.
* Introduced the ManagerRegistryInterface for the ManagerRegistry and adjusted the service alias for autowiring to the interface.
* The following container parameters are no longer taken into account (memcache and apc seem to have never been used anyways).
If you have customised the array cache class, please check if this is still needed - and note that starting from this version,
Expand Down
19 changes: 0 additions & 19 deletions src/ManagerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,6 @@ public function __construct(
);
}

/**
* Resolves a registered namespace alias to the full namespace.
*
* @param string $alias
*
* @throws PHPCRException
*/
public function getAliasNamespace($alias): string
{
foreach (array_keys($this->getManagers()) as $name) {
try {
return $this->getManager($name)->getConfiguration()->getDocumentNamespace($alias);
} catch (PHPCRException $e) {
}
}

throw PHPCRException::unknownDocumentNamespace($alias);
}

public function getManager($name = null): DocumentManagerInterface
{
$dm = parent::getManager($name);
Expand Down

0 comments on commit 3c542dc

Please sign in to comment.