Skip to content

Wrong namespace when generation a new controller #855

Closed
@nenes25

Description

@nenes25

Describe the bug (*)

When generating a controller the namespace is wrong, and the controller does not works.

To Reproduce (*)

Steps to reproduce the behavior:

  1. I create a module "Learn_ControllerIssue" in app/code
  2. Right click on the directory "ControllerIssue" then "New / Module File / Magento2 Controller"
  3. I fill the popin with the following data
    image
  4. The generated namespace is Learn\ControllerIssue\ControllerDemo
    image
  5. The controller does not works

Expected behavior (*)

The generated namespace should be Learn\ControllerIssue\Controller\Demo
The separation between the parent directory and the controller name is missing

Screenshots

If applicable, add screenshots to help explain your problem.

Please complete the following information: (*)

  • OS: Ubuntu Linux 18.04
  • PhpStorm/Intellij version: 2021.3
  • Plugin Version: 4.2.1

Additional context

Add any other context about the problem here.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions