Skip to content

Commit

Permalink
More defaults for TWebServerAction
Browse files Browse the repository at this point in the history
  • Loading branch information
belisoful committed Aug 20, 2023
1 parent 31fb907 commit a3a5652
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion framework/ISingleton.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface ISingleton
{
/**
* @param bool $create Should the singleton be created if it doesn't exist.
* @return ?object The singleton instance of the class
* @return ?object The singleton instance of the class.
*/
public static function singleton(bool $create = true): ?object;
}
8 changes: 4 additions & 4 deletions framework/Shell/Actions/TWebServerAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@ class TWebServerAction extends TShellAction
'Provides a Test PHP Web Server to serve the application.',
'Runs a PHP Web Server after Initializing the Application.'];

/** @var bool Listen on all network addresses assigned to the computer, when one is not provided. */
/** @var bool Listen on all network addresses assigned to the computer, when one is not provided. Default false. */
private bool $_all = false;

/** @var ?string The specific address to listen on. */
/** @var ?string The specific address to listen on. Default null. */
private ?string $_address = null;

/** @var int The port to listen on, default 8080 */
private int $_port = 8080;

/** @var bool Use a direct ip v6 address, when one is not provided. */
/** @var bool Use a direct ip v6 address, when one is not provided. Default false. */
private bool $_ipv6 = false;

/** @var int the number of workers for the Web Server */
/** @var int the number of workers for the Web Server, default 1. */
private int $_workers = 1;

/**
Expand Down

0 comments on commit a3a5652

Please sign in to comment.