Skip to content

Should namespaces be used or fully written at method heads #309

Description

@sv3tli0

I was working on something small and I decided to extend the Controller and its constructor.
https://github.com/bcit-ci/CodeIgniter4/blob/develop/system/Controller.php

How ever at the moment I got the same constructor name and all its param there came out an error:

Logger class which is defined as "use CodeIgniter\Log\Logger;" in my new Controller was not used and the system was looking for App/Controllers/Logger..

It isn't hard to add the same use definition into my class (and perhaps all its child's), but wouldn't it be better if all classes/interfaces which are inside any function head, are with their full namespace+class name instead of just the what is USE'd at the parent class ?

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