You are here

class CommentPermServiceProvider in Comment Permissions 8

Comment permissions service provider.

Hierarchy

Expanded class hierarchy of CommentPermServiceProvider

File

src/CommentPermServiceProvider.php, line 11

Namespace

Drupal\comment_perm
View source
class CommentPermServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function register(ContainerBuilder $container) {
    $container
      ->getDefinition('comment.link_builder')
      ->setClass('Drupal\\comment_perm\\CommentLinkBuilder');
    $container
      ->getDefinition('comment.manager')
      ->setClass('Drupal\\comment_perm\\CommentManager');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CommentPermServiceProvider::register public function Registers services to the container. Overrides ServiceProviderBase::register
ServiceProviderBase::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter 5