Skip to content

Commit

Permalink
Merge pull request #15 from RusticiSoftware/autoloadFix
Browse files Browse the repository at this point in the history
Adjusted README in accordance with new install method
  • Loading branch information
jtennies10 authored Jul 10, 2020
2 parents a9f664f + 8b2ecf5 commit 30a99e8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ REST API used for SCORM Cloud integrations.
This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 2.0
- Package version: 1.1.0
- Package version: 1.1.1
- Build package: io.swagger.codegen.languages.PhpClientCodegen

## Requirements
Expand All @@ -18,14 +18,6 @@ PHP 5.4.0 and later
composer require rustici-software/scormcloud-api-v2-client-php
```

### Manual Installation

Download the files and include `autoload.php`:

```php
require_once('/path/to/scormcloud-api-v2-client-php/autoload.php');
```

## Key Considerations
This library is generated using swagger-codegen. When swagger is updated, sometimes changes to the library occur. As a
result of the recent update, service classes are now instantiated slightly differently. You now need to pass a Configuration
Expand Down Expand Up @@ -88,7 +80,7 @@ $registration_api->createRegistration($reg_schema);
### Starter Script
```php
<?php
require_once('path/to/lib/autoload.php');
require_once('path/to/vendor/autoload.php');

// Configure HTTP basic authorization: APP_NORMAL
$config = new RusticiSoftware\Cloud\V2\Configuration();
Expand Down
1 change: 0 additions & 1 deletion autoload.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once("vendor/autoload.php");
/**
* SCORM Cloud Rest API
*
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rustici-software/scormcloud-api-v2-client-php",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"keywords": [
"scorm",
Expand Down
4 changes: 2 additions & 2 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'Swagger-Codegen/1.1.0/php';
protected $userAgent = 'Swagger-Codegen/1.1.1/php';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -397,7 +397,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' OpenAPI Spec Version: 2.0' . PHP_EOL;
$report .= ' SDK Package Version: 1.1.0' . PHP_EOL;
$report .= ' SDK Package Version: 1.1.1' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down

0 comments on commit 30a99e8

Please sign in to comment.