Skip to content

CLI CommandRunner is trying to instantiate abstract classes #1349

Description

@natanfelles

name: Bug report
about: Help us improve the framework by reporting bugs!


Direction
We use github issues to track bugs, not for support.
If you have a support question, or a feature request, raise these as threads on our
forum.

Describe the bug

CLI CommandRunner is trying to instantiate abstract classes and not CLI command files.

CodeIgniter 4 version

4.0.0 alpha.1

Affected module(s)

https://github.com/bcit-ci/CodeIgniter4/blob/f0e82fa0fbb3f97641b08d81e3807ee29c6de5f0/system/CLI/CommandRunner.php#L143-L163

Expected behavior, and steps to reproduce if appropriate

Expected CommandRunner does not try to instantiate abstract classes, and files that are not commands.

To reproduce, create an abstract class within the command directory or put a class that is not a command. When call the spark, an error will occur.

Context

  • OS: [Debian]
  • Web server [PHP]
  • PHP version [7.2]

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