コード例 #1
0
ファイル: Package.php プロジェクト: EaterOfCode/Order
 public function __construct($package, $state, $provider, $special)
 {
     $this->package = $package;
     $this->state = $state;
     $this->special = $special;
     if ($provider === null) {
         $this->provider = Runtime::getCurrent()->getPackageProvider()->getDefault();
     } else {
         $this->provider = Runtime::getCurrent()->getPackageProvider()->getByName($provider);
     }
 }
コード例 #2
0
ファイル: User.php プロジェクト: EaterOfCode/Order
 function __construct($name, $shouldExist, $password, $groups, $shell, $home, $comment, $provider)
 {
     $this->name = $name;
     $this->shouldExist = $shouldExist;
     $this->password = $password;
     $this->groups = $groups;
     $this->shell = $shell;
     $this->home = $home;
     $this->comment = $comment;
     if ($provider === null) {
         $this->provider = Runtime::getCurrent()->getUserProvider()->getDefault();
     } else {
         $this->provider = Runtime::getCurrent()->getUserProvider()->getByName($provider);
     }
 }
コード例 #3
0
ファイル: functions.php プロジェクト: EaterOfCode/Order
function template($file, $vars)
{
    return Runtime::getCurrent()->getTwig()->render($file, $vars);
}