Yaf_Registry::__constructConstructor of Yaf_Registry Description
private Yaf_Registry::__construct()
The constructor is private: Yaf_Registry implements the singleton pattern and cannot be instantiated directly. Use the static methods to read and write registry entries. ParametersThis function has no parameters. Return ValuesNo value is returned. ExamplesExample #1 Yaf_Registry::__construct example The constructor is private, so direct instantiation is rejected: The above example will output something similar to: PHP Fatal error: Uncaught Error: Call to private Yaf_Registry::__construct() from invalid context Example #2 Using Yaf_Registry through its static methods The above example will output something similar to: string(7) "1.0.0.1" See Also
|