Skip to content
Permalink
Browse files

Fixing links to 3.0 documentation in Console/Shell

  • Loading branch information...
gmansilla committed Aug 30, 2014
1 parent 07130cb commit 6c2611a2455b00c4e4138b4cd503cd68fc5e9dd3
Showing with 10 additions and 10 deletions.
  1. +10 −10 src/Console/Shell.php
@@ -188,7 +188,7 @@ public function io(ConsoleIo $io = null) {
* allows configuration of tasks prior to shell execution
*
* @return void
* @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::initialize
* @link http://book.cakephp.org/3.0/en/console-and-shells.html#Cake\Console\ConsoleOptionParser::initialize
*/
public function initialize() {
$this->loadTasks();
@@ -202,7 +202,7 @@ public function initialize() {
* or otherwise modify the pre-command flow.
*
* @return void
* @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::startup
* @link http://book.cakephp.org/3.0/en/console-and-shells.html#Cake\Console\ConsoleOptionParser::startup
*/
public function startup() {
$this->_welcome();
@@ -241,7 +241,7 @@ public function loadTasks() {
*
* @param string $task The task name to check.
* @return bool Success
* @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::hasTask
* @link http://book.cakephp.org/3.0/en/console-and-shells.html#shell-tasks
*/
public function hasTask($task) {
return isset($this->_taskMap[Inflector::camelize($task)]);
@@ -252,7 +252,7 @@ public function hasTask($task) {
*
* @param string $name The method name to check.
* @return bool
* @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::hasMethod
* @link http://book.cakephp.org/3.0/en/console-and-shells.html#shell-tasks
*/
public function hasMethod($name) {
try {
@@ -288,7 +288,7 @@ public function hasMethod($name) {
* `return $this->dispatchShell('schema', 'create', 'i18n', '--dry');`
*
* @return mixed The return of the other shell.
* @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::dispatchShell
* @link http://book.cakephp.org/3.0/en/console-and-shells.html#invoking-other-shells-from-your-shell
*/
public function dispatchShell() {
$args = func_get_args();
@@ -321,7 +321,7 @@ public function dispatchShell() {
* @param bool $autoMethod Set to true to allow any public method to be called even if it
* was not defined as a subcommand. This is used by ShellDispatcher to make building simple shells easy.
* @return void
* @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::runCommand
* @link http://book.cakephp.org/3.0/en/console-and-shells.html#the-cakephp-console
*/
public function runCommand($argv, $autoMethod = false) {
$command = isset($argv[0]) ? $argv[0] : null;
@@ -402,7 +402,7 @@ protected function _displayHelp($command) {
* By overriding this method you can configure the ConsoleOptionParser before returning it.
*
* @return ConsoleOptionParser
* @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::getOptionParser
* @link http://book.cakephp.org/3.0/en/console-and-shells.html#configuring-options-and-generating-help
*/
public function getOptionParser() {
$name = ($this->plugin ? $this->plugin . '.' : '') . $this->name;
@@ -543,7 +543,7 @@ public function hr($newlines = 0, $width = 63) {
* @param string $title Title of the error
* @param string $message An optional error message
* @return void
* @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::error
* @link http://book.cakephp.org/3.0/en/console-and-shells.html#styling-output
*/
public function error($title, $message = null) {
$this->_io->err(sprintf('<error>Error:</error> %s', $title));
@@ -558,7 +558,7 @@ public function error($title, $message = null) {
* Clear the console
*
* @return void
* @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::clear
* @link http://book.cakephp.org/3.0/en/console-and-shells.html#console-output
*/
public function clear() {
if (empty($this->params['noclear'])) {
@@ -576,7 +576,7 @@ public function clear() {
* @param string $path Where to put the file.
* @param string $contents Content to put in the file.
* @return bool Success
* @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::createFile
* @link http://book.cakephp.org/3.0/en/console-and-shells.html#creating-files
*/
public function createFile($path, $contents) {
$path = str_replace(DS . DS, DS, $path);

0 comments on commit 6c2611a

Please sign in to comment.
You can’t perform that action at this time.