emag-tech-labs/console-availability-bundle

A bundle that provides a console command availability in a development environment.

1.0.4 2020-07-29 16:07 UTC

This package is not auto-updated.

Last update: 2024-04-22 12:41:33 UTC


README

This bundle provides a console command availability in a development environment and is useful when you want to develop a command just for the dev or prod environment.

Installation

The recommended way to install the bundle is through Composer:

$ composer require emag-tech-labs/console-availability-bundle

Configuration

# config/services.yaml
services:
    # ...

    App\Command\SunshineCommand:
        tags:
            - { name: 'console.command.availability', env: 'dev' }

If you want to verify your command availability, please run the following list command:

# your command is listed in your console
$ bin/console list --env=dev

# your command is not listed in your console
$ bin/console list --env=prod

Submitting bugs and feature requests

If you found a nasty bug or want to propose a new feature, you're welcome to open an issue or create a pull request here.