src/RocknRoot/StrayFw/Console/Console.php
public static function before(string $path, string $usage, string $help, string $action)
    {
        if (self::$isInit === true) {
            self::$routes[] = array(
                'type' => 'before',
                'path' => $path,
                'usage' => $usage,
                'help' => $help,
                'action' => $action,
                'namespace' => self::$namespace
            );
        }
    }
public static function before(string $path, string $usage, string $help, string $action)
    {
        if (self::$isInit === true) {
            self::$routes[] = array(
                'type' => 'before',
                'path' => $path,
                'usage' => $usage,
                'help' => $help,
                'action' => $action,
                'namespace' => self::$namespace
            );
        }
    }
public static function before ( string $ path , string $ usage , string $ help , string $ action ) { if ( self :: $ isInit === true ) { self :: $ routes [ ] = array ( 'type' => 'before' , 'path' => $ path , 'usage' => $ usage , 'help' => $ help , 'action' => $ action , 'namespace' => self :: $ namespace ) ; } }
Add before hook to be considered.

@static
@param  string           $path   route path
@param  string           $usage  how to use it, for help screen
@param  string           $help   route description, for help screen
@param  string           $action class and method to call
Add before hook to be considered .