20 files declare their use of CurrentPathStack

ActiveLinkResponseFilter.php in core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
ActiveLinkResponseFilterTest.php in core/tests/Drupal/Tests/Core/EventSubscriber/ActiveLinkResponseFilterTest.php
PathAliasSubscriber.php in core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php
PathBasedBreadcrumbBuilder.php in core/modules/system/src/PathBasedBreadcrumbBuilder.php
ProxyServicesPassTest.php in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php
Raw.php in core/modules/views/src/Plugin/views/argument_default/Raw.php
RawTest.php in core/modules/views/tests/src/Unit/Plugin/argument_default/RawTest.php
RegistryTest.php in core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php
RequestPath.php in core/modules/system/src/Plugin/Condition/RequestPath.php
RequestPathTest.php in core/tests/Drupal/KernelTests/Core/Plugin/Condition/RequestPathTest.php
RouteProvider.php in core/lib/Drupal/Core/Routing/RouteProvider.php
RouteProviderTest.php in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Contains \Drupal\KernelTests\Core\Routing\RouteProviderTest.
Router.php in core/lib/Drupal/Core/Routing/Router.php
RouterLegacyTest.php in core/tests/Drupal/Tests/Core/Routing/RouterLegacyTest.php
RouterTest.php in core/tests/Drupal/Tests/Core/Routing/RouterTest.php
UrlMatcher.php in core/lib/Drupal/Core/Routing/UrlMatcher.php
ViewAjaxController.php in core/modules/views/src/Controller/ViewAjaxController.php
ViewsExposedForm.php in core/modules/views/src/Form/ViewsExposedForm.php
WorkspaceRequestSubscriber.php in core/modules/workspaces/src/EventSubscriber/WorkspaceRequestSubscriber.php
WorkspaceRequestSubscriberTest.php in core/modules/workspaces/tests/src/Unit/WorkspaceRequestSubscriberTest.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.