【发布时间】:2015-11-13 09:15:20
【问题描述】:
当我使用 Z-Ray 在服务器上加载 10 月份的安装时,我收到此错误:
// 用作解析器以对这些对象进行更精细的解析。
if ($concrete instanceof Closure)
{
return $concrete($this, $parameters);
}
$reflector = new ReflectionClass($concrete);
// If the type is not instantiable, the developer is attempting to resolve
// an abstract type such as an Interface of Abstract Class and there is
// no binding registered for the abstractions so we need to bail out.
if ( ! $reflector->isInstantiable())
{
错误来自这一行:$reflector = new ReflectionClass($concrete);
作为ReflectionException。
我不知道为什么会这样,但是在 XAMPP 上,这不存在。
网址:With Z-Ray 和 without Z-Ray。相同的文件,复制/粘贴。
谢谢
【问题讨论】:
-
试一试:composer dump-autoload in app根目录
-
@num8er 10 月份没有 composer.json。或者文件未加载。
-
抱歉,它是如何从供应商文件夹中自动加载类的?
-
好像是octobercms的问题:github.com/octobercms/october/issues/799
-
@num8er 我已经找到了答案,所以请随意复制它以获得50分(:
标签: php laravel zend-server octobercms