PHPackages                             kerasai/console-command-loader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. kerasai/console-command-loader

ActiveLibrary[CLI &amp; Console](/categories/cli)

kerasai/console-command-loader
==============================

Load services from the container as console commands Symfony.

0.0.1(6y ago)041PHPCI failing

Since Apr 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kerasai/console-command-loader)[ Packagist](https://packagist.org/packages/kerasai/console-command-loader)[ RSS](/packages/kerasai-console-command-loader/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Command Loader
==============

[](#command-loader)

This package adds the functionality to use services tagged as commands within a Symfony console application.

Usage
-----

[](#usage)

Set the "console.command" tag onto the service, and add a "command" value.

```
services:
  command.compute:
    class: \Kerasai\MyApp\Command\MyCommand
    public: true
    tags:
      - { name: 'console.command', command: 'my-command' }
```

And in the code that bootstraps the console application, create the service container and set the command loader.

```
