MediaLibraryServiceProvider.php

Same filename in other branches
  1. 11.x core/modules/media_library/src/MediaLibraryServiceProvider.php

Namespace

Drupal\media_library

File

core/modules/media_library/src/MediaLibraryServiceProvider.php

View source
<?php

declare (strict_types=1);
namespace Drupal\media_library;

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderInterface;

/**
 * Service provider for media library services.
 */
class MediaLibraryServiceProvider implements ServiceProviderInterface {
    
    /**
     * {@inheritdoc}
     */
    public function register(ContainerBuilder $container) {
        $container->registerForAutoconfiguration(MediaLibraryOpenerInterface::class)
            ->addTag('media_library.opener');
    }

}

Classes

Title Deprecated Summary
MediaLibraryServiceProvider Service provider for media library services.

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