This commit is contained in:
2020-09-01 13:39:50 +08:00
parent 708b0d2454
commit be51f894bb
+100
View File
@@ -228,6 +228,106 @@ abstract class BaseApplication extends Service
return $this->getFirstLocal() == $ip;
}
/**
* @return ErrorHandler
* @throws ComponentException
*/
public function getError()
{
return $this->get('error');
}
/**
* @return Processes
* @throws ComponentException
*/
public function getProcesses()
{
return $this->get('processes');
}
/**
* @return Processes
* @throws ComponentException
*/
public function getAnnotation()
{
return $this->get('annotation');
}
/**
* @return Processes
* @throws ComponentException
*/
public function getConnections()
{
return $this->get('connections');
}
/**
* @return Processes
* @throws ComponentException
*/
public function getPool()
{
return $this->get('pool');
}
/**
* @return Processes
* @throws ComponentException
*/
public function getResponse()
{
return $this->get('response');
}
/**
* @return Processes
* @throws ComponentException
*/
public function getRequest()
{
return $this->get('request');
}
/**
* @return Processes
* @throws ComponentException
*/
public function getConfig()
{
return $this->get('config');
}
/**
* @return Processes
* @throws ComponentException
*/
public function getRouter()
{
return $this->get('router');
}
/**
* @return Processes
* @throws ComponentException
*/
public function getJwt()
{
return $this->get('jwt');
}
/**
* @throws Exception
*/