I’m trying to create an instance of an object but the object class name is set by hand.
in config.php:
define('DIRECTORY', 'RaptorDirectory');
in the class file:
$this->directory = new DIRECTORY; // <--- how do I use the constant there?
I’m doing this because DIRECTORY might change to a different class (e.g., LDAPDirectory)
You can’t use a constant there but you can use a variable, eg