Service Container

The Kiaan service container is handle your tool when you start your project.

You will find the file service.php in directory resources\settings.

The code can be written in the handle() method to be executed at the start of the project.

/* 
* Handle
*
*/
public function handle() {
    // Validator rules
    Validator::rules([
        "helloWorld" => "Hello_World",
    ]);

    // Cli commands
    Cli::commands([
        "helloWorld" => "Hello_World",
    ]);
}

Last updated