Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop obsolete namespace alias method #397

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading