Skip to content

Bug: Command "queue:publish" not found #78

@nidhintrell

Description

@nidhintrell

PHP Version

8.2.0

CodeIgniter4 Version

4.7.0

Queue Package Version

dev-develop

Which operating systems have you tested for this bug?

Windows

Which server did you use?

apache

Queue Driver

database mysql

Queue Configuration

Trying to setup que configuration but i get Command "queue:publish" not found.

What happened?

After installing codeigniter4/queue via composer, the queue:publish (and all queue:*) commands are not discovered by php spark list, even with proper configuration.

Environment:

  • CodeIgniter v4.7.0
  • PHP 8.2.20 (MAMP)
  • macOS
  • codeigniter4/queue: dev-develop

Steps to Reproduce

  • composer require codeigniter4/queue:dev-develop
  • Add namespace to app/Config/Autoload.php
public $psr4 = [
    APP_NAMESPACE        => APPPATH,
    'CodeIgniter\\Queue' => ROOTPATH . 'vendor/codeigniter4/queue/src',
];
  • Add 'commands' to $aliases in app/Config/Modules.php
public $aliases = [
    'commands',
    'events',
    'filters',
    'registrars',
    'routes',
    'services',
];
  • Verify namespace is found: php spark namespaces shows CodeIgniter\Queue as Found? Yes
  • Run php spark queue:publish

Expected Output

Command runs and publishes Queue.php config file.

Actual: Command "queue:publish" not found.
php spark list does not show any queue:* commands.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions