Skip to content

Routing for "cli" actions. #1166

Description

@nowackipawel

I am trying to implement some useful funcs for admin panel which are accessible from console.
For. ex. as long as in my config (Routes.php) is:
$routes->cli('passwd', 'App\Controllers\Admin\Tools::passwd');
command like:
../public$ php -q index.php passwd
works great.

But when I am trying to make an hierarchy like:
$routes->cli('cli-admin/passwd', 'App\Controllers\Admin\Tools::passwd');
or:

$routes->group(
    'cli-admin',
    function($routes)
    {
$routes->cli('passwd', 'App\Controllers\Admin\Tools::passwd');
    }
);

command like
../public$ php -q index.php cli-admin passwd

returns HTML of my route defined for "/" and all types of escaping "-" gives no change. If there is no "-" in any segment it works ok.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions