Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

ServiceProviderInterface.php

Same filename in this branch
  1. 11.1.x vendor/symfony/service-contracts/ServiceProviderInterface.php

Namespace

Drupal\Core\DependencyInjection

File

core/lib/Drupal/Core/DependencyInjection/ServiceProviderInterface.php

View source
<?php

namespace Drupal\Core\DependencyInjection;


/**
 * Interface that all service providers must implement.
 *
 * @ingroup container
 */
interface ServiceProviderInterface {
    
    /**
     * Registers services to the container.
     *
     * @param ContainerBuilder $container
     *   The ContainerBuilder to register services to.
     */
    public function register(ContainerBuilder $container);

}

Interfaces

Title Deprecated Summary
ServiceProviderInterface Interface that all service providers must implement.
RSS feed
Powered by Drupal