You are here

public function ServerCommand::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Command/ServerCommand.php \Drupal\Core\Command\ServerCommand::__construct()
  2. 10 core/lib/Drupal/Core/Command/ServerCommand.php \Drupal\Core\Command\ServerCommand::__construct()

Constructs a new ServerCommand command.

Parameters

object $class_loader: The class loader.

File

core/lib/Drupal/Core/Command/ServerCommand.php, line 41

Class

ServerCommand
Runs the PHP webserver for a Drupal site for local testing/development.

Namespace

Drupal\Core\Command

Code

public function __construct($class_loader) {
  parent::__construct('server');
  $this->classLoader = $class_loader;
}