1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace addons\apidoc;
-
- use think\Addons;
-
- class Apidoc extends Addons
- {
-
- public function install()
- {
-
- $route_file = ADDON_PATH . str_replace("/", DS, "apidoc/install/apidoc.php");
- copy($route_file, ROOT_PATH . 'config' . DS . 'apidoc.php');
- return true;
- }
-
-
- public function uninstall()
- {
-
- if (file_exists(ROOT_PATH . 'config' . DS . 'apidoc.php')) {
- unlink(ROOT_PATH . 'config' . DS . 'apidoc.php');
- }
- return true;
- }
-
-
-
- public function appInit()
- {
-
-
-
- }
- }
|