首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >通过Composer安装Microsoft会导致PHP-PSR4问题

通过Composer安装Microsoft会导致PHP-PSR4问题
EN

Stack Overflow用户
提问于 2022-09-13 15:05:57
回答 1查看 93关注 0票数 0

试图安装Microsoft Graph会导致奇怪的行为。

在运行composer install microsoft/microsoft-graph时,我看到以下输出:

代码语言:javascript
运行
复制
Class Beta\Microsoft\Graph\IdentityGovernance\Model\Task located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/Task.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\TaskReport located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/TaskReport.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\LifecycleTaskCategory located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/LifecycleTaskCategory.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\WorkflowTriggerTimeBasedAttribute located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/WorkflowTriggerTimeBasedAttribute.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\TaskProcessingResult located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/TaskProcessingResult.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\TimeBasedAttributeTrigger located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/TimeBasedAttributeTrigger.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\WorkflowExecutionConditions located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/WorkflowExecutionConditions.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\TriggerAndScopeBasedConditions located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/TriggerAndScopeBasedConditions.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\WorkflowVersion located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/WorkflowVersion.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\CustomTaskExtensionOperationStatus located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/CustomTaskExtensionOperationStatus.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\LifecycleWorkflowsContainer located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/LifecycleWorkflowsContainer.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\WorkflowTemplate located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/WorkflowTemplate.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\CustomTaskExtensionCallbackConfiguration located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/CustomTaskExtensionCallbackConfiguration.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\TaskDefinition located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/TaskDefinition.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\Run located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/Run.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\UserProcessingResult located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/UserProcessingResult.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\WorkflowExecutionTrigger located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/WorkflowExecutionTrigger.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\WorkflowBase located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/WorkflowBase.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\LifecycleManagementSettings located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/LifecycleManagementSettings.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\CustomTaskExtensionCalloutData located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/CustomTaskExtensionCalloutData.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\CustomTaskExtensionCallbackData located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/CustomTaskExtensionCallbackData.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\RuleBasedSubjectSet located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/RuleBasedSubjectSet.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\WorkflowExecutionType located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/WorkflowExecutionType.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\LifecycleWorkflowProcessingStatus located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/LifecycleWorkflowProcessingStatus.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\UsersProcessingSummary located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/UsersProcessingSummary.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\Workflow located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/Workflow.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\LifecycleWorkflowCategory located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/LifecycleWorkflowCategory.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\TaskReportSummary located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/TaskReportSummary.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\UserSummary located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/UserSummary.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\OnDemandExecutionOnly located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/OnDemandExecutionOnly.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\CustomTaskExtension located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/CustomTaskExtension.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\Parameter located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/Parameter.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\RunSummary located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/RunSummary.php does not comply with psr-4 autoloading standard. Skipping.
Class Beta\Microsoft\Graph\IdentityGovernance\Model\ValueType located in ./vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/ValueType.php does not comply with psr-4 autoloading standard. Skipping.

安装后,我的composer.json包含"microsoft/microsoft-graph": "^1.74",

我找不到关于这件事的任何已知问题?任何帮助都很感激。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-09-13 15:44:37

删除composer.lockvendor并通过运行composer install重新安装

如果仍然不能工作,那么要么存在一些依赖问题,要么您的编写器版本会导致您试图安装的软件包出现问题。

你的作曲家版本是什么?

您可以使用下面的作曲家版本来玩;

代码语言:javascript
运行
复制
composer self-update // to update to latest version

composer self-update --rollback // roll back to previous version if you have one

composer self-update 1.1.1 // install specific version

更改编写器版本后,删除composer install并锁定文件并再次运行

编辑

这实际上是包https://github.com/microsoftgraph/msgraph-sdk-php/issues/791的最新版本的一个已知问题。

也许你应该试试旧版

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73705290

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档