Beispiel #1
0
 /**
  * This method executes the lookup.
  *
  * @access public
  * @static
  * @final
  * @param Common\HashMap $data                              the data to be processed
  * @return Common\HashMap                                   the processed data
  */
 public static final function execute(Common\HashMap $data)
 {
     $object = new static();
     $data = $object->before($data);
     $data = $object->process($data);
     $data = $object->after($data);
     return $data;
 }
Beispiel #2
0
 /**
  * @param array $params
  *
  * @return mixed
  */
 public static function load($params = [])
 {
     $configFile = null;
     $configPaths = [];
     extract($params);
     $me = new static();
     $me->loadConfig($configFile, $configPaths);
     $me->before();
     $me->customLoad();
     $me->loadDispatcher();
     $me->after();
     $me->finish();
     return $me->getApplication();
 }