Class ApiShell
API shell to show method signatures of CakePHP core classes.
Implementation of a Cake Shell to show CakePHP core method signatures.
- AppShell
- ApiShell
Package: Cake\Console\Command
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/ApiShell.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/ApiShell.php
Properties summary
-
$paths
publicarray
Map between short name for paths and real paths.
Method Summary
-
_parseClass() protected
Parse a given class (located on given file) and get public methods and their signatures.
-
getOptionParser() public
Gets the option parser instance and configures it. -
help() public
Show help for this shell. -
initialize() public
Override initialize of the Shell -
main() public
Override main() to handle action
Method Detail
_parseClass() protected ¶
_parseClass( string $path , string $class )
Parse a given class (located on given file) and get public methods and their signatures.
Parameters
- string $path
- File path
- string $class
- Class name
Returns
array
Methods and signatures indexed by method name
Methods and signatures indexed by method name