. * */ namespace OCP\AppFramework; use OCP\AppFramework\IApi; use OCP\IContainer; /** * Class IAppContainer * @package OCP\AppFramework * * This container interface provides short cuts for app developers to access predefined app service. */ interface IAppContainer extends IContainer{ /** * used to return the appname of the set application * @return string the name of your application */ function getAppName(); /** * @return IApi */ function getCoreApi(); /** * @return \OCP\IServerContainer */ function getServer(); /** * @param IMiddleWare $middleWare * @return boolean */ function registerMiddleWare(IMiddleWare $middleWare); }