Skip to content

make:entity ignores psr-4 path from composer.json #272

Open
@Skywalker-11

Description

@Skywalker-11

When you have set a psr-4 path for the autoloader in composer.json the make:entity ignores this and always tries to create the file at src/Entity.

Eg. if you have this in your composer.json so that the classes in Example\... namespace are stored in src/Example/... the make:entity always generates the entity file at src/Entity instead of src/Example/Entity.

  "autoload": {
    "psr-4": {
      "Example\\": "src/Example"
    }
  },

For make:controller this seem to work correct as it does not rely on hardcoded paths like in MakeEntity.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions