Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 328 Bytes

2_basic_usage.md

File metadata and controls

14 lines (11 loc) · 328 Bytes

Basic usage

A basic command will be like this:

# config/routes/commands.yaml
command_cache_clear:
    controller: Softspring\Component\CommandController\Controller\CommandController::run
    path: /_command/cache-clear
    defaults:
        command: cache:clear

This route will run as $ bin/console cache:clear