我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何从两个不同的项目加载最新的类

Consider below example. I have two projects. I have used common class c in both project. I want to load the latest class c from anyone of the project.

E.g.

Project 1:

class a {
}

if ( ! class_exists( 'c' ) ) :
    class c {
        static $version = '1.0.0';
    }
}

Project 2:

class b {
}

if ( ! class_exists( 'c' ) ) :
    class c {
        static $version = '1.0.2';
    }
}

In above example, I'm expecting to load the class c from Project 2 in both projects because it has latest 1.0.2.

Any suggestions? Thanks in Advance.

近期文章

  • PHP Soap客户端调用
  • 使用php MVC / ajax / json删除多条记录时的foreach问题
  • 当请求体> 2k时,Nginx错误得到recv()失败(104:由对等体重置连接)
  • 无法获得请求数据laravel 5.6
  • 为什么php模块不知道安装?
  • 在twilio更新会议活动
  • 为什么php文件不是由cron作业执行的?
  • 使用mysqli无法插入数据
  • PHP变量不作为参考
  • 选择深层嵌套的复选框需要使用jQuery选择父复选框
  • Magento 1.9自定义URL重写的问题
  • index.php codeigniter文件不会从aws lite上的服务器/ var / www / html加载
  • 已超过'max_connections_per_hour'
  • 将属性添加到嵌套字段
  • 显示插件分层弹出窗口
  • 如何在同一个会话中使用Curl php重定向
  • 将Echo的<a>标签用作PHP网站中的下载链接
  • PHP Simple HTML DOM Parser在多个类上返回null
  • PHP 5.6,xDebug,远程调试设置
  • 在PHP项目中设置依赖注入

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华