Altax\Foundation\Module::__construct PHP Method

__construct() public method

public __construct ( $container )
    public function __construct($container)
    {
        $this->container = $container;
    }

Usage Example

Example #1
0
 public function __construct($container)
 {
     parent::__construct($container);
     $homedir = getenv("HOME") ? getenv("HOME") : getenv("USERPROFILE");
     $this->set("homedir", $homedir);
     $username = getenv("USER") ? getenv("USER") : getenv("USERNAME");
     $this->set("username", $username);
     // Default values.
     $this->set("server.port", 22);
     $this->set("server.key", $this->get("homedir") . "/.ssh/id_rsa");
     $this->set("server.username", $this->get("username"));
 }