예제 #1
0
 public static function onAutoload($class)
 {
     static $growlApp;
     BEAR::onAutoload($class);
     $ref = new ReflectionClass($class);
     $file = $ref->getFileName();
     if (!$growlApp) {
         $growlApp = new Net_Growl_Application(__CLASS__, array("Growl_Notify"));
     }
     $growl = Net_Growl::singleton($growlApp, null, null);
     $growl->setNotificationLimit(16);
     if (BEAR::exists($class)) {
         $config = BEAR::get($class)->getConfig();
     }
     $growl->notify("Growl_Notify", $class, $class);
 }