Php 使用zend framework 2/3组件&x27;zf应用程序外的s
我试图在zend framework之外使用一些zend framework组件,但我无法这样做 这是我的作曲文件Php 使用zend framework 2/3组件&x27;zf应用程序外的s,php,zend-framework2,zend-framework3,Php,Zend Framework2,Zend Framework3,我试图在zend framework之外使用一些zend framework组件,但我无法这样做 这是我的作曲文件 { "require": { "zendframework/zend-authentication": "^2.5.3" }, "autoload": { "psr-4": { "Zend\\Authentication\\": "" } } } 我能够运行composer更新和安装,它生成了aut
{
"require": {
"zendframework/zend-authentication": "^2.5.3"
},
"autoload": {
"psr-4": {
"Zend\\Authentication\\": ""
}
}
}
我能够运行composer更新和安装,它生成了autoload.php
但是当我尝试使用组件时,我得到“致命错误:找不到类'Zend\Authentication\Storage\Session'
我的设置中有什么明显的遗漏吗?我需要自动加载器
require __DIR__ . '/../vendor/autoload.php';
现在问题解决了
require __DIR__ . '/../vendor/autoload.php';