PHP Classes

File: novakit

Recommend this page to a friend!
  Classes of Ujah Chigozie peter   Luminova Framework   novakit   Download  
File: novakit
Role: Application script
Content type: text/plain
Description: Luminova CLI Tool
Class: Luminova Framework
PHP Luminova framework: simple, powerful MVC/HMVC.
Author: By
Last change: New update and changes
Date: 15 days ago
Size: 617 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php
/**
 * Luminova Framework NovaKit Command Line Tool.
 *
 * @package Luminova
 * @author Ujah Chigozie Peter
 * @copyright (c) Nanoblock Technology Ltd
 * @license See LICENSE file
 */
use \Luminova\Command\Console;
use \
Luminova\Boot;

/**
 * Autoload composers
*/
require __DIR__ . '/system/Boot.php';

/**
 * Location of the framework bootstrap file.
*/
Boot::cli();

/**
 * Ensure the current directory is pointing to the front controller's directory
*/
chdir(FRONT_CONTROLLER);

/**
 * Initialize Terminal Console and Run console instance
*/
(new Console())->run($_SERVER['argv'] ?? []);