• Hi there,

    not really a support request, but more a question about your code. I was looking at the code of your plugin (pretty clean and nicely written in my opinion), and I was wondering why you weren’t using a private constructor (“private function __construct()”) because you are using the Singleton pattern anyway and therefore shouldn’t be able to instanciate your class multiple times.

    Any specific reason for this?

    Cheers,
    Mike

The topic ‘About plugin code: Why not use a private constructor?’ is closed to new replies.