/** * Start yasc. * * @param string|array $namespaces * @return void */ public function run($namespaces = null) { if ($namespaces !== null) { self::$_instance->_setNamespaces($namespaces); } self::$_instance->_request->setCurrentUrl(); self::$_instance->_configure(); self::$_instance->_processFunctions(); self::$_instance->_processRoutes(); self::$_instance->_setView(); self::$_instance->_preDispatch(); self::$_instance->_dispatch(); self::$_instance->_postDispatch(); self::$_instance->_response->sendResponse(); }