Task class for creating and updating the database configuration file.
$_defaultConfig
protected array
$databaseClassName
public string
String name of the database config class name. Used for testing.
$path
public string
_verify( array $config )
Output verification message and bake if it looks good
$config
bake( array $configs )
Assembles and writes database.php
$configs
getOptionParser( )
Gets the option parser instance and configures it.
ConsoleOptionParser
protected array
Default configuration settings to use
array( 'name' => 'default', 'datasource' => 'Database/Mysql', 'persistent' => 'false', 'host' => 'localhost', 'login' => 'root', 'password' => 'password', 'database' => 'project_name', 'schema' => null, 'prefix' => null, 'encoding' => null, 'port' => null )
public string
String name of the database config class name. Used for testing.
'DATABASE_CONFIG'
© 2005–2016 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.9/class-DbConfigTask.html