php - Class 'League\Glide\ServerFactory' is not found -


im trying use league glide showing image, here code:

require(apppath.'vendor/autoload.php'); use league\flysystem\adapter\local; use league\flysystem\filesystem;  function league_image(){     $array = array(       'source' => new filesystem(new local(realpath(apppath.'../../images'))),       'cache' => new filesystem(new local(realpath(apppath.'../../images/cache/'))),    );      $server =  league\glide\serverfactory::create(        $array;     );     $server->setsourcepathprefix('source');     $server->setcachepathprefix('cache');      return $server; } 

i got glide folder, using zip move vendor

and got folowing error :

fatal error: class 'league\glide\serverfactory' not found in c:\xampp\htdocs\deal\application\helpers\image_helper.php on line 106 a php error encountered

severity: error

message: class 'league\glide\serverfactory' not found

filename: helpers/image_helper.php

line number: 106

backtrace:

guys can guide me how error shown? in phpstrom class defined if ctrl+click , going part of serverfactory


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -