I was having trouble getting the autoload working with Restler 3 RC4 and Amazon Web Services (AWS). Arul provided a fix which worked beautifully.

$loader = require_once 'vendor/autoload.php';
$loader->setUseIncludePath(true);
class_alias('Luracast\\Restler\\Restler', 'Restler');
有帮助吗?

解决方案

Just to mark this question as answered I'm placing the answer which is part of the question back here

$loader = require_once 'vendor/autoload.php';
$loader->setUseIncludePath(true);
class_alias('Luracast\\Restler\\Restler', 'Restler');
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top