Class ServerShell
built-in Server Shell
- AppShell
- ServerShell
Package: Cake\Console\Command
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/ServerShell.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/ServerShell.php
Constants summary
-
string
'localhost'
-
integer
80
Properties summary
-
$_documentRoot
protecteddocument rootstring
-
$_host
protectedserver hoststring
-
$_port
protectedlisten portstring
Method Summary
- _welcome() protectedDisplays a header for the shell
- getOptionParser() publicGets the option parser instance and configures it.
- initialize() publicOverride initialize of the Shell
- main() publicOverride main() to handle action
- startup() public
Starts up the Shell and displays the welcome message. Allows for checking and configuring prior to command or main execution
Method Detail
getOptionParser()source public
getOptionParser( )
Gets the option parser instance and configures it.
Returns
ConsoleOptionParser
startup()source public
startup( )
Starts up the Shell and displays the welcome message. Allows for checking and configuring prior to command or main execution
Override this method if you want to remove the welcome information, or otherwise modify the pre-command flow.
Link
https://book.cakephp.org/2.0/en/console-and-shells.html#Shell::startupProperties detail
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.10/class-ServerShell.html