/** * 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; }
/** * @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(); }