AppserverIo\Appserver\Core\Api\Node\ClassLoaderNode::__construct PHP Method

__construct() public method

Initializes the class loader configuration with the passed values.
public __construct ( string $name = '', string $interface = '', string $type = '', string $factory = '', array $params = [], array $directories = [], array $namespaces = [] )
$name string The unique class loader name
$interface string The interface name the class loader has
$type string The class loaders class name
$factory string The class loaders factory class name
$params array The class loaders params
$directories array The class loaders directory to load classes from
$namespaces array The class loaders namespaces for classes to be handled
    public function __construct($name = '', $interface = '', $type = '', $factory = '', array $params = array(), array $directories = array(), array $namespaces = array())
    {
        // initialize the UUID
        $this->setUuid($this->newUuid());
        // set the data
        $this->name = $name;
        $this->interface = $interface;
        $this->type = $type;
        $this->factory = $factory;
        $this->params = $params;
        $this->directories = $directories;
        $this->namespaces = $namespaces;
    }