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/libraries/Console/Application.php
2016-02-19 22:49:00 +01:00

40 lines
716 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);
}
}