PHP Класс 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.
С версии: 2.0.7
Автор: Alexander Makarov ([email protected])
Наследование: extends yii\console\Controller
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
actionIndex ( string $address = 'localhost' ) : integer Runs PHP built-in web server
optionAliases ( )
options ( $actionID )

Защищенные методы

Метод Описание
isAddressTaken ( string $address ) : boolean

Описание методов

actionIndex() публичный Метод

Runs PHP built-in web server
public actionIndex ( string $address = 'localhost' ) : integer
$address string address to serve on. Either "host" or "host:port".
Результат integer

isAddressTaken() защищенный Метод

protected isAddressTaken ( string $address ) : boolean
$address string server address
Результат boolean if address is already in use

optionAliases() публичный Метод

С версии: 2.0.8
public optionAliases ( )

options() публичный Метод

public options ( $actionID )

Описание свойств

$docroot публичное свойство

path or path alias to directory to serve
public $docroot

$port публичное свойство

port to serve on.
public $port

$router публичное свойство

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