This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/app/Console/Application.php
2016-07-26 19:29:53 +02:00

40 lines
714 B
PHP

<?php
/**
* Holds the console application meta.
*
* @package Sakura
*/
namespace Sakura\Console;
/**
* Command line interface main.
*
* @package Sakura
* @author Julian van de Groep <me@flash.moe>
*/
class Application extends \CLIFramework\Application
{
/**
* CLI Application name
*/
const NAME = 'Sakura';
/**
* CLI Application version
*/
const VERSION = SAKURA_VERSION;
/**
* CLI initialiser
*/
public function init()
{
// Execute the original init function
parent::init();
// Add commands with class reference because the autoloader is retarded
$this->command('serve', Command\ServeCommand::class);
}
}