Blame view

src/lib/myMailer.php 436 Bytes
ef60cd4d   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
  
  namespace{
  
      class myMailer{
  
          public function __get($classname) {
  
              $path = __DIR__."/MyMailer/$classname.php";
             // die($path);
              if (file_exists($path)) {
                  $classname = "MyMailer\\$classname";
                  return  $classname::getInstance();
              } else {
                  throw new Exception('Драйвер не найден');
              }
          }
      }
  
  }