PHP Class yii\console\controllers\ServeController

In order to access server from remote machines use 0.0.0.0:8000. That is especially useful when running server in a virtual machine.
Since: 2.0.7
Author: Alexander Makarov ([email protected])
Inheritance: extends yii\console\Controller
Afficher le fichier Open project: yiisoft/yii2

Méthodes publiques

Свойство Type Description
$docroot path or path alias to directory to serve
$port port to serve on.
$router path to router script. See https://secure.php.net/manual/en/features.commandline.webserver.php

Méthodes publiques

Méthode Description
actionIndex ( string $address = 'localhost' ) : integer Runs PHP built-in web server
optionAliases ( )
options ( $actionID )

Méthodes protégées

Méthode Description
isAddressTaken ( string $address ) : boolean

Method Details

actionIndex() public méthode

Runs PHP built-in web server
public actionIndex ( string $address = 'localhost' ) : integer
$address string address to serve on. Either "host" or "host:port".
Résultat integer

isAddressTaken() protected méthode

protected isAddressTaken ( string $address ) : boolean
$address string server address
Résultat boolean if address is already in use

optionAliases() public méthode

Since: 2.0.8
public optionAliases ( )

options() public méthode

public options ( $actionID )

Property Details

$docroot public_oe property

path or path alias to directory to serve
public $docroot

$port public_oe property

port to serve on.
public $port

$router public_oe property

path to router script. See https://secure.php.net/manual/en/features.commandline.webserver.php
public $router