Added require_once(autoload.php) in resource.php when Composer is enabled