162 files declare their use of ContainerBuilder

AcceptHeaderRoutingTestServiceProvider.php in core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderRoutingTestServiceProvider.php
AccessResultTest.php in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
AdminAccountSwitcherTest.php in core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php
AuthenticationProviderPassTest.php in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/AuthenticationProviderPassTest.php
BaseFieldDefinitionTest.php in core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
BaseFieldDefinitionTestBase.php in core/tests/Drupal/Tests/Core/Field/BaseFieldDefinitionTestBase.php
BlockComponentRenderArrayTest.php in core/modules/layout_builder/tests/src/Unit/BlockComponentRenderArrayTest.php
BlockConfigEntityUnitTest.php in core/modules/block/tests/src/Unit/BlockConfigEntityUnitTest.php
BlockManagerTest.php in core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php
BreadcrumbManagerTest.php in core/tests/Drupal/Tests/Core/Breadcrumb/BreadcrumbManagerTest.php
CacheCollectorTest.php in core/tests/Drupal/KernelTests/Core/Cache/CacheCollectorTest.php
CacheContextsManagerTest.php in core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheFactoryTest.php in core/tests/Drupal/Tests/Core/Cache/CacheFactoryTest.php
CallableResolverTest.php in core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php
CKEditor5PluginManagerTest.php in core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php
CollectRoutesTest.php in core/modules/rest/tests/src/Unit/CollectRoutesTest.php
CommentBulkFormTest.php in core/modules/comment/tests/src/Unit/Plugin/views/field/CommentBulkFormTest.php
CommentLockTest.php in core/modules/comment/tests/src/Unit/Entity/CommentLockTest.php
ConfigEntityBaseUnitTest.php in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
ConfigEntityTypeTest.php in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php
ConfigImporterMissingContentTest.php in core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php
ConfigNamesMapperTest.php in core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php
ConfigOverride.php in core/lib/Drupal/Core/Installer/ConfigOverride.php
ConfigTest.php in core/tests/Drupal/Tests/Core/Config/ConfigTest.php
ContainerBuilderTest.php in core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php
ContainerRebuildTestServiceProvider.php in core/modules/system/tests/modules/container_rebuild_test/src/ContainerRebuildTestServiceProvider.php
ContentEntityBaseUnitTest.php in core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php
ContentLanguageSettingsUnitTest.php in core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php
ContentTranslationManageAccessCheckTest.php in core/modules/content_translation/tests/src/Unit/Access/ContentTranslationManageAccessCheckTest.php
ContextAwarePluginTraitTest.php in core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php
ContextDefinitionIsSatisfiedTest.php in core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php
CoreServiceProvider.php in core/lib/Drupal/Core/CoreServiceProvider.php
CountryCodeConstraintTest.php in core/tests/Drupal/Tests/Core/Validation/Plugin/Validation/Constraint/CountryCodeConstraintTest.php
CronQueueTest.php in core/modules/system/tests/src/Kernel/System/CronQueueTest.php
CronSuspendQueueDelayTest.php in core/tests/Drupal/Tests/Core/Cron/CronSuspendQueueDelayTest.php
CustomPageExceptionHtmlSubscriberTest.php in core/tests/Drupal/Tests/Core/EventSubscriber/CustomPageExceptionHtmlSubscriberTest.php
DatabaseBackendTagTest.php in core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php
DatabaseStorageExpirableTest.php in core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageExpirableTest.php
DatabaseStorageTest.php in core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php
DateFormatAccessControlHandlerTest.php in core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php
DateHelperTest.php in core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php
DateTest.php in core/tests/Drupal/Tests/Core/Datetime/DateTest.php
DbDumpTest.php in core/modules/mysql/tests/src/Kernel/mysql/DbDumpTest.php
DefaultsSectionStorageTest.php in core/modules/layout_builder/tests/src/Unit/DefaultsSectionStorageTest.php
DrupalFlushAllCachesTest.php in core/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php
DrupalKernel.php in core/lib/Drupal/Core/DrupalKernel.php
EditorConfigEntityUnitTest.php in core/modules/editor/tests/src/Unit/EditorConfigEntityUnitTest.php
EndOfTransactionQueriesTest.php in core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php
EntityAdapterUnitTest.php in core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php
EntityContextDefinitionIsSatisfiedTest.php in core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php
EntityDisplayModeBaseUnitTest.php in core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayModeBaseUnitTest.php
EntityLinkTest.php in core/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php
EntityListBuilderTest.php in core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php
EntityReferenceSettingsTest.php in core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php
EntityUnitTest.php in core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php
EntityUrlTest.php in core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php
ErrorServiceTestServiceProvider.php in core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php
ExceptionLoggingSubscriberTest.php in core/tests/Drupal/KernelTests/Core/EventSubscriber/ExceptionLoggingSubscriberTest.php
ExtensionSerializationTest.php in core/tests/Drupal/Tests/Core/Extension/ExtensionSerializationTest.php
FieldConfigEntityUnitTest.php in core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
FieldDefinitionTest.php in core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php
FieldItemListTest.php in core/tests/Drupal/Tests/Core/Field/FieldItemListTest.php
FieldStorageConfigEntityUnitTest.php in core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php
FieldTypePluginManagerTest.php in core/tests/Drupal/Tests/Core/Field/FieldTypePluginManagerTest.php
FieldUiTest.php in core/modules/field_ui/tests/src/Unit/FieldUiTest.php
FileServiceProvider.php in core/modules/file/src/FileServiceProvider.php
FileTestBase.php in core/tests/Drupal/KernelTests/Core/File/FileTestBase.php
FilterCaptionTwigDebugTest.php in core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php
FormAjaxSubscriberTest.php in core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php
FormSubmitterTest.php in core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php
FrontMatterTest.php in core/tests/Drupal/KernelTests/Core/Theme/FrontMatterTest.php
HelpEmptyPageTest.php in core/modules/help/tests/src/Kernel/HelpEmptyPageTest.php
HelpTopicDiscoveryTest.php in core/modules/help/tests/src/Unit/HelpTopicDiscoveryTest.php
ImageStyleCustomStreamWrappersTest.php in core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php
ImageStyleTest.php in core/modules/image/tests/src/Unit/ImageStyleTest.php
InlineFormErrorsServiceProvider.php in core/modules/inline_form_errors/src/InlineFormErrorsServiceProvider.php
install.core.inc in core/includes/install.core.inc
API functions for installing Drupal.
InstallerServiceProvider.php in core/lib/Drupal/Core/Installer/InstallerServiceProvider.php
JsonapiServiceProvider.php in core/modules/jsonapi/src/JsonapiServiceProvider.php
KernelTestBase.php in core/tests/Drupal/KernelTests/KernelTestBase.php
KeyValueEntityStorageTest.php in core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php
LanguageConfigOverrideTest.php in core/modules/language/tests/src/Unit/Config/LanguageConfigOverrideTest.php
LanguageNegotiationContentEntityTest.php in core/modules/language/tests/src/Unit/Plugin/LanguageNegotiation/LanguageNegotiationContentEntityTest.php
LanguageServiceProvider.php in core/modules/language/src/LanguageServiceProvider.php
LayoutBuilderIsActiveCacheContextTest.php in core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php
LayoutBuilderServiceProvider.php in core/modules/layout_builder/src/LayoutBuilderServiceProvider.php
LayoutPluginManagerTest.php in core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php
LinkFormatterTest.php in core/modules/link/tests/src/Unit/LinkFormatterTest.php
LinkGeneratorTest.php in core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php
LinkTest.php in core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php
LocaleConfigSubscriberForeignTest.php in core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php
LocaleLookupTest.php in core/modules/locale/tests/src/Unit/LocaleLookupTest.php
LocalTaskManagerTest.php in core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php
MailManagerTest.php in core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php
MediaLibraryServiceProvider.php in core/modules/media_library/src/MediaLibraryServiceProvider.php
MediaTestOembedServiceProvider.php in core/modules/media/tests/modules/media_test_oembed/src/MediaTestOembedServiceProvider.php
MemoryStorageTest.php in core/tests/Drupal/KernelTests/Core/KeyValueStore/MemoryStorageTest.php
MenuLinkParentTest.php in core/modules/migrate/tests/src/Unit/process/MenuLinkParentTest.php
MenuLinkTreeTest.php in core/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php
MigrateDrupalServiceProvider.php in core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php
MigratePrivateFileTest.php in core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php
MigrateSourceTest.php in core/modules/migrate/tests/src/Unit/MigrateSourceTest.php
MigrateSqlSourceTestBase.php in core/modules/migrate/tests/src/Kernel/MigrateSqlSourceTestBase.php
MigrateTestCase.php in core/modules/migrate/tests/src/Unit/MigrateTestCase.php
MigrationLookupTestCase.php in core/modules/migrate/tests/src/Unit/process/MigrationLookupTestCase.php
NavigationServiceProvider.php in core/modules/navigation/src/NavigationServiceProvider.php
NodeBulkFormTest.php in core/modules/node/tests/src/Unit/Plugin/views/field/NodeBulkFormTest.php
NodeOperationAccessTest.php in core/modules/node/tests/src/Unit/NodeOperationAccessTest.php
NodeServiceProvider.php in core/modules/node/src/NodeServiceProvider.php
NormalInstallerServiceProvider.php in core/lib/Drupal/Core/Installer/NormalInstallerServiceProvider.php
PathPluginBaseTest.php in core/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php
PhpMailTest.php in core/tests/Drupal/Tests/Core/Mail/Plugin/Mail/PhpMailTest.php
PluralTranslatableMarkupTest.php in core/tests/Drupal/Tests/Core/StringTranslation/PluralTranslatableMarkupTest.php
PreprocessPagerTest.php in core/modules/system/tests/src/Unit/Pager/PreprocessPagerTest.php
ProxyServicesPassTest.php in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php
RecipeEventsTest.php in core/tests/Drupal/KernelTests/Core/Recipe/RecipeEventsTest.php
RecursiveContextualValidatorTest.php in core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php
RegisterSerializationClassesCompilerPassTest.php in core/modules/serialization/tests/src/Unit/CompilerPass/RegisterSerializationClassesCompilerPassTest.php
RenderElementTest.php in core/tests/Drupal/Tests/Core/Render/Element/RenderElementTest.php
RequestFormatRouteFilterTest.php in core/tests/Drupal/Tests/Core/Routing/RequestFormatRouteFilterTest.php
ResponsiveImageStyleConfigEntityUnitTest.php in core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php
RolesRidTest.php in core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
RouteBuilderTest.php in core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php
RouterTestServiceProvider.php in core/modules/system/tests/modules/router_test_directory/src/RouterTestServiceProvider.php
SectionComponentTest.php in core/modules/layout_builder/tests/src/Unit/SectionComponentTest.php
SectionRenderTest.php in core/modules/layout_builder/tests/src/Unit/SectionRenderTest.php
SectionTest.php in core/modules/layout_builder/tests/src/Unit/SectionTest.php
SerializationServiceProvider.php in core/modules/serialization/src/SerializationServiceProvider.php
ServiceProviderTest.php in core/tests/Drupal/KernelTests/Core/ServiceProvider/ServiceProviderTest.php
ServiceProviderTestServiceProvider.php in core/modules/system/tests/modules/service_provider_test/src/ServiceProviderTestServiceProvider.php
SqlBaseTest.php in core/modules/views/tests/src/Unit/Plugin/pager/SqlBaseTest.php
SqlContentEntityStorageTest.php in core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
StackedKernelPassTest.php in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/StackedKernelPassTest.php
StateTransitionValidationTest.php in core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php
StorageCopyTraitTest.php in core/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php
TestKernel.php in core/lib/Drupal/Core/Test/TestKernel.php
ThemeInstallerTest.php in core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php
ThemeNegotiatorTest.php in core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php
TimeZoneFormHelperTest.php in core/tests/Drupal/Tests/Core/Datetime/TimeZoneFormHelperTest.php
TokenTest.php in core/tests/Drupal/Tests/Core/Utility/TokenTest.php
TranslationTest.php in core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php
TwigEnvironmentTest.php in core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php
TwigIncludeTest.php in core/modules/system/tests/src/Kernel/Theme/TwigIncludeTest.php
UnitTestCase.php in core/tests/Drupal/Tests/UnitTestCase.php
UnroutedUrlTest.php in core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
UpdateMailTest.php in core/modules/update/tests/src/Unit/UpdateMailTest.php
UpdatePathTestBase.php in core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
UpdateServiceProvider.php in core/lib/Drupal/Core/Update/UpdateServiceProvider.php
UrlGeneratorTest.php in core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
UrlTest.php in core/tests/Drupal/Tests/Core/UrlTest.php
UserBulkFormTest.php in core/modules/user/tests/src/Unit/Plugin/views/field/UserBulkFormTest.php
UserMailRequiredValidatorTest.php in core/modules/user/tests/src/Unit/Plugin/Validation/Constraint/UserMailRequiredValidatorTest.php
UserSessionTest.php in core/tests/Drupal/Tests/Core/Session/UserSessionTest.php
ViewExecutableTest.php in core/modules/views/tests/src/Unit/ViewExecutableTest.php
ViewListBuilderTest.php in core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php
ViewsBlockTest.php in core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php
ViewsTemplateTest.php in core/modules/views/tests/src/Kernel/ViewsTemplateTest.php
ViewsTest.php in core/modules/views/tests/src/Unit/ViewsTest.php
WorkflowAccessControlHandlerTest.php in core/modules/workflows/tests/src/Kernel/WorkflowAccessControlHandlerTest.php
WorkflowTest.php in core/modules/workflows/tests/src/Unit/WorkflowTest.php
WorkspacesServiceProvider.php in core/modules/workspaces/src/WorkspacesServiceProvider.php
YamlFileLoaderTest.php in core/tests/Drupal/Tests/Core/DependencyInjection/YamlFileLoaderTest.php

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