Documentation

class-o3po-singleton.php

A implementation of the Singleton Pattern in php that is compatible with PHP >= 8.0.

Originally I had a nicer solution from https://stackoverflow.com/a/37800033/3424521 that also had __sleep() and __wakeup() private. This is no longer possible under PHP 8.0.

Tags
link
https://quantum-journal.org/o3po/
since
0.1.0
subpackage

O3PO/includes

Table of Contents

Classes

O3PO_Singleton
A modern implementation of the Singleton Pattern in php.

        
On this page

Search results