cms icon indicating copy to clipboard operation
cms copied to clipboard

php artisan route:list ! ReflectionException : Class does not exist !

Open wanyangyue opened this issue 7 years ago • 3 comments

php artisan route:list

ReflectionException : Class does not exist

at C:\Users\wanyangyue\Desktop\git\farm\farmCms\vendor\laravel\framework\src\Illuminate\Container\Container.php: 767 763: if ($concrete instanceof Closure) { 764: return $concrete($this, $this->getLastParameterOverride()); 765: } 766: 767: $reflector = new ReflectionClass($concrete); 768: 769: // If the type is not instantiable, the developer is attempting to resolve 770: // an abstract type such as an Interface of Abstract Class and there is 771: // no binding registered for the abstractions so we need to bail out. 772: if (! $reflector->isInstantiable()) {

Exception trace:

1 ReflectionClass::__construct("") C:\Users\wanyangyue\Desktop\git\farm\farmCms\vendor\laravel\framework\src\Illuminate\Container\Container.php : 767

2 Illuminate\Container\Container::build() C:\Users\wanyangyue\Desktop\git\farm\farmCms\vendor\laravel\framework\src\Illuminate\Container\Container.php : 646

wanyangyue avatar Apr 26 '18 09:04 wanyangyue

same

michallesniak avatar Apr 26 '18 11:04 michallesniak

PR with a fix for that pushed on LavaLite/framework. In ClientRepository and ClientResourceController, variable 'type' doesn't have any value, what causes Exception, cause Repository cannot load model for non-existing user type.

gachowy avatar Apr 26 '18 17:04 gachowy

@gachowy Thank you !

wanyangyue avatar Apr 27 '18 02:04 wanyangyue