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

Breadcrumb

  1. Drupal Core 11.1.x
  2. ServiceFactory.php

function ServiceFactory::setService

Set service

Parameters

string $serviceName Name of service:

object $service Service instance:

File

vendor/lullabot/php-webdriver/lib/WebDriver/ServiceFactory.php, line 90

Class

ServiceFactory
WebDriver\ServiceFactory class

Namespace

WebDriver

Code

public function setService($serviceName, $service) {
    $this->services[$serviceName] = $service;
}
RSS feed
Powered by Drupal