Ferreteria/v0.6/sys/Registry/class
< Ferreteria | v0.6 | sys/Registry
Jump to navigation
Jump to search
|
about class registries see also: object registries
|
About
- Purpose: You have a set of classes (clade-family) for handling a situation, and you need to look up the class to use and/or retrieve an object of that class.
use-cases
This is used to register Database Engine* classes to be available. The Config\Roster\for\AClass trait provides RegisterSelf() for classes to self-register (<class-name>::RegisterSelf()) and FromClassSlug(string $sSlug) to retrieve an object for that class from a slug-string.
- *Specifically, Connection classes self-register, and then their objects invoke Ops (operations) objects as needed.