Skip to content

Instantly share code, notes, and snippets.

@mentisy
Created June 10, 2018 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mentisy/79097cc825d6f4411263c07799b70755 to your computer and use it in GitHub Desktop.
Save mentisy/79097cc825d6f4411263c07799b70755 to your computer and use it in GitHub Desktop.
<?php
namespace App\Command;
use Cake\Console\Arguments;
use Cake\Console\Command;
use Cake\Console\ConsoleIo;
/**
* Hello command.
*/
class HelloCommand extends Command
{
/**
* Implement this method with your command's logic.
*
* @param \Cake\Console\Arguments $args The command arguments.
* @param \Cake\Console\ConsoleIo $io The console io
* @return null|int The exit code or null for success
*/
public function execute(Arguments $args, ConsoleIo $io)
{
$io->out('Hello world.');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment