Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Don't rely on global variables #11

@evert

Description

@evert

Relying on global variables is considered a bad practice in PHP. It would be best not to promote or suggest using this.

You have a fairly decent API in LeLogger.php, but promoting the API in lelogger.php is something I would suggest you avoid.

Rather than making it 'the API' it may be better to show it off as an example that can be re-used, but shouldn't be directly included. I imagine lelogger.php was added to ease setting up the LeLogger object, but it may be better to do this in the form of a factory method that takes an array for setup.

Just a thought.

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