试图安装Microsoft Graph会导致奇怪的行为。
在运行composer install microsoft/microsoft-graph
时,我看到以下输出:
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",
我找不到关于这件事的任何已知问题?任何帮助都很感激。
发布于 2022-09-13 15:44:37
删除composer.lock
和vendor
并通过运行composer install
重新安装
如果仍然不能工作,那么要么存在一些依赖问题,要么您的编写器版本会导致您试图安装的软件包出现问题。
你的作曲家版本是什么?
您可以使用下面的作曲家版本来玩;
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的最新版本的一个已知问题。
也许你应该试试旧版
https://stackoverflow.com/questions/73705290
复制相似问题