Example #1
0
 /**
  *  Ahoy! There nay be boardin without yer configuration
  *
  * @param array $config
  * @return Application
  */
 public static function ahoy(array $config)
 {
     static $inst = null;
     if ($inst === null) {
         $inst = new Application();
         $inst->registry = Registry::ahoy();
         foreach ($config as $key => $value) {
             $inst->registry->set($key, $value);
         }
     }
     return $inst;
 }