我正在遵循this tutorial和this one来创建一个带有Apigility的基本REST API,我不是Zend方面的专家,因为我的目标是在symfony2应用程序上构建这个api,但是现在,在遵循了这两个教程中的所有步骤之后,我达到了相同的程度,当访问http://api.example.com/endpoint1时,我得到了一个异常:
Zend\ServiceManager\Exception\ServiceNotCreatedException
File:
/var/www/api.example.com/zf-apigility-skeleton/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:1070
Message:
An abstract factory could not create an instance of exampleapiv1restprovinciacontroller(alias: ExampleAPI\V1\Rest\Provincia\Controller).发布于 2014-09-06 04:58:07
查看运行webserver的用户在项目文件夹中是否有permission to write。
看看你是否有disabled opcache and others code chaches (像APC)。
应用程序需要权限才能生成和更改/config和/modules文件夹中的文件。
https://stackoverflow.com/questions/24676545
复制相似问题