Logo white

Administrator / seo-dev

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • seo-dev
  • src
  • lib
  • myMailer.php
  • first commit
    ef60cd4d
    Administrator authored
    2015-08-20 09:28:12 +0300  
    Browse Code »
myMailer.php 436 Bytes
Edit Raw Blame History
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('Драйвер не найден');
            }
        }
    }

}