Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer update 会将自己在 helpers.php 里写的函数覆盖没.... #356

Open
andyzu opened this issue Feb 4, 2023 · 4 comments
Open

Comments

@andyzu
Copy link

andyzu commented Feb 4, 2023

composer update 会将自己在 helpers.php 里写的函数覆盖没....

@walkor
Copy link
Owner

walkor commented Feb 4, 2023 via email

@fudaoji
Copy link

fudaoji commented Feb 7, 2023

@walkor 但是执行plugin里的程序时,无法访问到app/functions.php里定义的函数吧?

@walkor
Copy link
Owner

walkor commented Feb 8, 2023 via email

@guanhui07
Copy link
Contributor

  "autoload": {
    "psr-4": {
      "App\\": "app/"
    },
    "files": [
      "app/functions.php"
    ]
  },

原理应该是用的composer 自动加载的 应该都是可以访问到

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants