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

Breadcrumb

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

function ServerCommand::__construct

Constructs a new ServerCommand command.

Parameters

object $class_loader: The class loader.

Overrides Command::__construct

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;
}
RSS feed
Powered by Drupal